PowerTip: Display the Value of Pi by Using PowerShell


Summary: Use Windows PowerShell to easily display the value of pi.

Hey, Scripting Guy! Question How can I use Windows PowerShell to obtain the value for pi?

Hey, Scripting Guy! Answer Use the Pi static property from the System.Math class:

[math]::pi

Comments (0)

Skip to main content