Math.exp()

Get the value of ℮ raised to the power of a Number.

Signature

Math.exp(x: Number) => Number

Description

Gets the value of raised to the power of a provided Number.

See Math.E.

Parameters

Parameter Type Required Description

x

Number

true

A number.

Return value

Type Description

Number

Non-negative number representing ℮ to the power of a provided number, where ℮ is the base of the natural logarithm.

Examples

let num = Math.exp(1)
Math.trunc(num, 15)
2.718281828201507
\