Rounding up a double to the nearest integer
You can use the .NET [Math]::Ceiling
function and cast the result to [int]
:
PS > [int][Math]::Ceiling(1.1)2 PS > [int][Math]::Ceiling(1.6)2PS >
You can use the .NET [Math]::Ceiling
function and cast the result to [int]
:
PS > [int][Math]::Ceiling(1.1)2 PS > [int][Math]::Ceiling(1.6)2PS >