Skip to content

pi

Mathematical constant π.

y = pi

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.

sin(pi) % ≈ 0 (within eps)
2 * pi * r % circumference
  • eps — Floating-point relative accuracy (machine epsilon).
  • realmin — Smallest positive normalized floating-point number.
  • realmax — Largest positive finite floating-point number.