Math.log

Returns the natural logarithm (base e) of a number.

Syntax

log(value)

Parameters

Return value

A number.

Example

Math.log(Math.E)
1
Math.log(28000)
10.239959789157341