User Guide
Math.exp() 429
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
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.
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