PI

All functions > MATH > PI

Returns the mathematical constant π (pi).

Signatures

Returns: The value of π (approximately 3.141592653589793)

PI() → DOUBLE
sql
ParameterTypeRequiredDescription

Notes

  • π is the ratio of a circle's circumference to its diameter
  • π ≈ 3.141592653589793
  • Used in trigonometric and geometric calculations
  • COS(PI()) = -1 and SIN(PI()) = 0
  • Mathematical constant, same value every time

Examples

FeatureQL
SELECT
    f1 := PI()  -- Pi constant
;
Result
f1 VARCHAR
3.141592653589793

Last update at: 2026/03/03 16:47:38
Last updated: 2026-03-03 16:48:19