Skip to content
Algo Trade Analytics Docs

math.log10() - Pine Script Function

The common (or base 10) logarithm of number is the power to which 10 must be raised to obtain the number. 10^y = number.

math.log10(number) → const float
NameTypeDescription
numberconst int/floatThe number to use in the calculation.

The base 10 logarithm of number.