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