Math.exp()
Availability
Flash Player 5. In Flash Player 4, the methods and properties of the Math class are emulated using
approximations and might not be as accurate as the non-emulated math functions that Flash
Player 5 supports.
Usage
Math.exp(x:Number) : Number
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
Example
The following example displays the logarithm for two number values.
trace(Math.exp(1)); // output: 2.71828182845905
trace(Math.exp(2)); // output: 7.38905609893065
. The constant
x
Math.E
can provide the value of e.
Math.exp()
429
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers