Flash Lite 2.x and 3.0 ActionScript Language Reference

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.

Parameters

x:Number - The exponent; a number or expression.

Returns

Number - A number.

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

See also

E (Math.E property)