Skip to main content
Open topic with navigation CAPL Functions » General » Function Overview » _ceil

_ceil

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

float _ceil(float x);

Description

Calculates the ceiling of a value, i.e. the smallest integer larger or equal to the value.

Parameters

  • x: Value of which the ceiling shall be calculated.

Return Values

Ceiling of x.

Example

float x;
x = _ceil(3.6); // x == 4.0
_floor_round