math - Pine Script Constants
Overview
Section titled “Overview”Constants under the math namespace.
Constants
Section titled “Constants”| Name | Type | Description |
|---|---|---|
math.e | const float | Is a named constant for Euler’s number. It is equal to 2.7182818284590452. |
math.phi | const float | Is a named constant for the golden ratio. It is equal to 1.6180339887498948. |
math.pi | const float | Is a named constant for Archimedes’ constant. It is equal to 3.1415926535897932. |
math.rphi | const float | Is a named constant for the golden ratio conjugate. It is equal to 0.6180339887498948. |