JavaScript tutorial:
exp method

 

Applies to: Math Object

The exp method is use to get the e (the base of natural logarithms) raised to a power.

Syntax

Math.exp(number)

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

Return value

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

Example

The return value is enumber. The constant e is Euler's constant, approximately equal to 2.178 and number is the supplied argument.

See also: E Property, Math Object Methods