Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Math > floor (Math.floor method) | |||
public static floor(x:Number) : Number
Returns the floor of the number or expression specified in the parameter x. The floor is the closest integer that is less than or equal to the specified number or expression.
Availability: ActionScript 1.0; 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.
x:Number - A number or expression.
Number - The integer that is both closest to, and less than or equal to, parameter x.
The following code returns a value of 12:
Math.floor(12.5);
The following code returns a value of -7:
Math.floor(-6.5);
Flash CS3
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001826.html
Comments
No screen name said on Jan 31, 2008 at 6:17 AM :