Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Display Square Root of Number

$
0
0

Summary: Use Windows PowerShell to display the square root of a number.

Hey, Scripting Guy! Question How can I figure out the square root of a number when I am writing a Windows PowerShell script?

Hey, Scripting Guy! Answer Use the Sqrt static method from the System.Math class. This example obtains the square root of the number 9:

[math]::Sqrt(9)


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>