log

log

> Functions

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