log

log(number number) → real log
Computes the natural logarithm of given number.

Calculates the natural logarithm of the number number.

Parameters
Return
Python

In Python, math.log() is the native function of the math module: if number <= 0, it raises a ValueError (math domain error) instead of returning NaN as LeekScript does.

Examples

log(1) // 0 log(E) // 1 log(1000000) // 13.815510558