math.log10() - Pine Script Function
math.log10()
Section titled “math.log10()”Overview
Section titled “Overview”The common (or base 10) logarithm of number is the power to which 10 must be raised to obtain the number. 10^y = number.
Syntax
Section titled “Syntax”math.log10(number) → const floatParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| number | const int/float | The number to use in the calculation. |
Returns
Section titled “Returns”The base 10 logarithm of number.