PI
Returns the mathematical constant π.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=PI()
Remarks
PI()takes no arguments.- Commonly used with trig and geometry formulas.
Examples
Return the constant pi at spreadsheet precision.
Formula =PI()
Expected result 3.14159265358979
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Use pi in the circumference formula for a circle of radius three.
Formula =2*PI()*3
Expected result 18.8495559215388
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The area expression for a circle of radius zero evaluates to zero.
Formula =PI()*0^2
Expected result 0
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Circle circumference with radius 2
Formula =2*PI()*2
Expected result 12.5663706143592
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
Can PI take arguments?
No. PI() has arity zero and always returns the same constant.