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
\