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

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)


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