Math.ceil()
Availability
Flash Player 5. In Flash Player 4, the methods and properties of the Math class are emulated using
approximations and might not be as accurate as the non-emulated math functions that Flash
Player 5 supports.
Usage
Math.ceil(x:Number) : Number
Parameters
A number or expression.
x
Returns
An integer that is both closest to, and greater than or equal to, parameter
Description
Method; 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.
Example
The following code returns a value of 13:
Math.ceil(12.5);
See also
Math.floor(),
426
Chapter 2: ActionScript Language Reference
Math.round()
.
x
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers