PI
All functions > CONSTANT > PI
Returns the mathematical constant π (pi).
Syntax
PI()
sql
Arguments
Parameter | Type | Required | Description |
---|
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
andSIN(PI()) = 0
- Mathematical constant, same value every time