Flash Lite 2.x and 3.0 ActionScript Language Reference

int function

int(value) : 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.

Parameters

value:Number - A number to be rounded to an integer.

Returns

Number - The truncated integer value.

See also

round (Math.round method), floor (Math.floor method), ceil (Math.ceil method)