math.sqrt() - Pine Script Function
math.sqrt()
Section titled “math.sqrt()”Overview
Section titled “Overview”Square root of any number >= 0 is the unique y >= 0 such that y^2 = number.
Syntax
Section titled “Syntax”math.sqrt(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 square root of number.