The Fauna service will be ending on May 30, 2025.

For more information on the service wind down, see our announcement and the Fauna Service End-of-Life FAQ.

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 provided Number. The Number must be greater than or equal to zero.

Parameters

Parameter Type Required Description

x

Number

true

Number greater than or equal to zero.

Return value

Type Description

Number

Natural logarithm, base e, of the provided number.

Examples

Math.log(10)
2.302585092994046
\