ceiling()
The mathLib.ceiling() system function returns the smallest integer not less than a specified number.
Syntax
mathLib.ceiling(numericVariable FLOAT in)
returns (result BIGINT | FLOAT)
- numericVariable
- Input can be any variable or expression that is assignment compatible with the FLOAT type (see "Assignment compatibility in EGL").
- result
- The ceiling integer for numericVariable. The return type is BIGINT in all target platforms other than Rich UI, where the return type is FLOAT.
Example
myVar = 4.5;
result = mathLib.ceiling(myVar); // result = 5
myVar2 = -4.5;
result = mathLib.ceiling(myVar2); // result = -4