Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Math > exp (Math.exp method) | |||
public static exp(x:Number) : Number
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.
Availability: ActionScript 1.0; 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.
x:Number - The exponent; a number or expression.
Number - A number.
The following example displays the logarithm for two number values.
trace(Math.exp(1)); // output: 2.71828182845905 trace(Math.exp(2)); // output: 7.38905609893065
Flash CS3