pi
Mathematical constant π.
Syntax
Section titled “Syntax”y = piDescription
Section titled “Description”Returns the constant pi = 3.14159265358979... to double-precision. Use as a literal in formulas; treated as a function with no arguments by the interpreter.
Examples
Section titled “Examples”sin(pi) % ≈ 0 (within eps)2 * pi * r % circumference