PI

All functions > CONSTANT > PI

Returns the mathematical constant π (pi).

Syntax

PI()
sql

Arguments

ParameterTypeRequiredDescription

Returns

DOUBLE - The value of π (approximately 3.141592653589793)

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

Last update at: 2025/10/13 10:23:46