PI
The constant pi, a circle's circumference divided by its diameter: 3.14159265358979.
Group: Math. Compatible with DAX.
Syntax
PI ( )
It takes no parameters.
Returns
Number. Pi, 3.14159265358979…, the length of a circle's edge divided by its width.
Remarks
- It takes no argument, but the parentheses are needed:
PI (). - Trigonometry in OAX works in radians, where pi is half a turn:
RADIANS ( 180 )is pi.
Examples
Pi and a circle of radius 5
EVALUATE
ROW (
"Pi", PI (),
"Area", PI () * 5 ^ 2,
"Edge", 2 * PI () * 5
)
| Pi | Area | Edge |
|---|---|---|
| 3.14159265358979 | 78.5398163397448 | 31.4159265358979 |