PowerTip: Display the Value of Pi by Using PowerShell

Doctor Scripto

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

0 comments

Discussion is closed.

Feedback usabilla icon