Sunday, January 18, 2009

round off 2 decimal numbers

to round off the value of '24.49' to nearest whole number

PS> [System.Math]::Round(24.49)

24 <--- notice it is not '24.5' then '25'

No comments:

Post a Comment