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