Constants
math.pi
Archimedes' constant: the ratio of a circle's circumference to its diameter. The contract records this constant's name and type only, so this edition does not print its value.
Example
//@lipi=2
indicator("math.pi Example", overlay=false)
// A sine wave with a 20-bar period
plot(math.sin(2 * math.pi * bar_index / 20), title="Sine Wave", color=color.blue)
Type
const float