Math.log()

Get the natural logarithm, base e, of a number.

Signature

Math.log(x: Number): Number

Description

Gets the natural logarithm, base e, of a number. The number x must be greater than or equal to zero.

Parameters

Parameter Type Required Description

x

Number

Yes

Number greater than or equal to zero.

Return value

Type Description

Number

Natural logarithm, base e, of x.

Examples

Math.log(10)
 2.302585092994046

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!