What\'s the best way to round down to nearest whole number in Powershell?
I am trying [math]::truncate but its not giving me predictable results.
Example:
Ah, I see. Looks like the datatype needs to be decimal:
[decimal] $de = 17.2/.1 [double] $db = 17.2/.1 [math]::floor($de) 172 [math]::floor($db) 171
http://msdn.microsoft.com/en-us/library/system.math.floor(v=vs.85).aspx