This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

exp

Summary

Returns e (the base of natural logarithms) raised to a power.

Syntax

Math.exp( number )

Examples

var v1 = Math.exp(1.0);
document.write(v1);
// Output: 2.718281828459045

Remarks

The required number argument is a numeric expression representing the power of e.

The return value is a number. The constant e is Euler’s number, approximately equal to 2.71828 and number is the supplied argument.

Applies To : Math Object

See also

Other articles

Attributions

  • Microsoft Developer Network: Article