MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 451

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

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
The exponent; a number or expression.
x
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
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
A number or expression.
x
Returns
A number.
Description
Method; returns the floor of the number or expression specified in the parameter
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);
. The constant
x
Math.E
can provide the value of e.
. The floor is
x
Math.floor()
451

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Table of Contents