The mathLog() function returns the natural logarithm (base e) of a number.
mathLog()
0.12.0
A number
The natural logarithm (base e) of x. If x is less than 0, NaN is returned.
mathLog(1); // 0mathLog(Math.E); // 1mathLog(10); // 2.302585092994046mathLog(-1); // NaN Copy
mathLog(1); // 0mathLog(Math.E); // 1mathLog(10); // 2.302585092994046mathLog(-1); // NaN
Returns the natural logarithm (base e) of a number.
A numeric expression.
The
mathLog()
function returns the natural logarithm (base e) of a number.Since
0.12.0
Param: x
A number
Returns
The natural logarithm (base e) of x. If x is less than 0, NaN is returned.
Example