Summary: Easily use Windows PowerShell to round a number up or down.
I want only a whole number returned, so I want the number rounded up or down as appropriate.
How can I do this with Windows PowerShell?
Cast the number as an integer, and Windows PowerShell will round the number up or down
as appropriate, for example:
PS C:\> [int]22.4
PS C:\> [int]22.5
PS C:\> [int]22.6