CAPL Script

Ceil

Syntax

float _ceil(float x);

Function

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.

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

_floor | _round