PI
All functions > MATH > PI
Returns the mathematical constant π (pi).
Signatures
Returns: The value of π (approximately 3.141592653589793)
PI() → DOUBLE sql
| Parameter | Type | Required | Description |
|---|
Notes
- π is the ratio of a circle's circumference to its diameter
- π ≈ 3.141592653589793
- Used in trigonometric and geometric calculations
COS(PI()) = -1andSIN(PI()) = 0- Mathematical constant, same value every time
Examples
FeatureQL
SELECT
f1 := PI() -- Pi constant
;Result
| f1 VARCHAR |
|---|
| 3.141592653589793 |
On this page