powershell - Rounding up a double to the nearest integer -
how can convert double int make sure rounds regardless of decimal value (as long decimal value not 0)?
can use .net [math]::ceiling
function , cast result [int]
:
ps > [int][math]::ceiling(1.1) 2 ps > [int][math]::ceiling(1.6) 2 ps >