log10

log10

> Functions

Calculates the logarithm in base 10 of the number number.

Parameters
Return
Python

In Python, math.log10() 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

log10(1) // 0 log10(10) // 1 log10(1000000) // 6