CAPL Script

Floor

Syntax

float _floor(float x);

Function

Calculates the floor of a value, i.e. the largest integer smaller or equal to the value.

Parameters

x Value of which the floor shall be calculated.

Return Values

Floor of x.

float x;x = _floor(3.6); // x == 3.0

_ceil | _round