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 x.

See Math.E.

Parameters

Parameter Type Required Description

x

Number

Yes

A number.

Return value

Type Description

Number

Nonnegative number representing ℮ to the power of x, where ℮ is the base of the natural logarithm.

Examples

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

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!