Flash 8 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.round().
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)
Version 8
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00001735.html