OpenBI Docs Buy

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
)
PiAreaEdge
3.1415926535897978.539816339744831.4159265358979

RADIANS, DEGREES, SIN, SQRTPI.

Last updated · OpenBI Studio 0.3.74