Built-in functions: math_ceil()
The function math_ceil() rounds a value to the next highest integer value.
Declaration
float math_ceil( float aValue )
Parameters
aValue
The value to round.
Discussion
The function math_ceil() calculates the next highest integer value of the value passed in the parameter aValue. For example:
var float result = math_ceil( 11.3 ); // result = 12.0 var float result = math_ceil( -5.3 ); // result = -5.0
See also the float instant property ceil as well as the cognate built-in functions math_floor(), math_round(), math_trunc() and math_fract().