Skip to content
Algo Trade Analytics Docs

math.log() - Pine Script Function

Natural logarithm of any number > 0 is the unique y such that e^y = number.

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

The natural logarithm of number.