Loading....

Month: May 2011

PowerShell and rounding. Math is hard!

I had a student question regarding a function he wrote.  The function basically displayed disk info (disk size, free disk space and percent free), but we couldn’t get it to round the numbers.  In this first example, the numbers are not rounded: Function Get-DiskInfo { param ($System =”.”) $display = @{Label = “Drive” ; Expression={$_.DeviceID}},` […]

Read More..
Top