Check out v4 of the Fauna CLI

v4 of the Fauna CLI is now in beta.

The new version introduces enhancements to the developer experience, including an improved authentication workflow. To get started, check out the CLI v4 quick start.

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!