Math.exp(number)
Top  Previous  Next


SWiSH Player Support
SWF4 or later - Supported Internally

Syntax
Math.exp(x)

Arguments
x: The exponent - a number or expression.

Returns
A number.

Description
Returns the value e, to the power of the exponent specified in the parameter x.

e is a constant and is the value of the base of the natural logarithm.
e has an approximate value of 2.71828

Sample
Math.exp(2
);   // returns e squared (or e * e), which is approximately 7.3890

Note: Requires Advanced Math Support. See here for more information

See Also
Math.log(), Math.log10(), Converting Log Base
Math.pow() and Math.sqrt().