Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript language elements > Global Functions > int function | |||
int(value:Number) : Number
Deprecated since Flash Player 5. This function was deprecated in favor of Math.floor() for positive values and Math.ceil for negative values.
Converts a decimal number to an integer value by truncating the decimal value. This function is equivalent to Math.floor() if the value parameter is positive and Math.ceil() if the value parameter is negative.
Availability: ActionScript 1.0; Flash Player 4
value:Number - A number to be rounded to an integer.
Number - The truncated integer value.
round (Math.round method), floor (Math.floor method), ceil (Math.ceil method)
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001185.html