EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 451

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Math.floor() 451
Math.exp()
Availability
Flash Player 5. In Flash Player 4, the methods and properties of the Math class are emulated using
approximations and may not be as accurate as the non-emulated math functions supported by
Flash Player 5.
Usage
Math.exp(x)
Parameters
x
The exponent; a number or expression.
Returns
A number.
Description
Method; returns the value of the base of the natural logarithm (e), to the power of the exponent
specified in the parameter
x. The constant Math.E can provide the value of e.
Math.floor()
Availability
Flash Player 5. In Flash Player 4, the methods and properties of the Math class are emulated using
approximations and may not be as accurate as the non-emulated math functions supported by
Flash Player 5.
Usage
Math.floor(x)
Parameters
x
A number or expression.
Returns
A number.
Description
Method; 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.
Example
The following code returns a value of 12:
Math.floor(12.5);

Table of Contents

Related product manuals