March 14th, 2015

PowerTip: Display the Value of Pi by Using PowerShell

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.