SWiSH Player Support
SWF4 or later - Supported Internally
Syntax
Math.floor(x)
Arguments
x: A number or expression.
Returns
A number, the closest integer that is less than or equal to x.
Description
Returns the floor of the specified number or expression. The floor of a number is the closest integer that is less than or equal to the number.
Sample
Math.floor(4.8); // returns 4
Math.floor(-3.2); // returns -4
See Also
Math.ceil() and Math.round().