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 > 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -