PowerTip: Use PowerShell to Round Numbers
Summary: Learn how to use Windows PowerShell to round numbers.
Is there an easy way to use Windows PowerShell to round numbers up or down in a computation that produces a large amount of numbers after the decimal point?
Use the static Round method from the [math] class:
PS C:> $a = 22/7
PS C:> $a
PS C:> [math]::Round($a)
How would this be different than: [int]$a