I hate to bring this up from the dead, but I will anyway…
I’m trying to convert a number with lots of decimal points into one with fewer. The suggests above work, for the most part, accept when dealing with rounding up.
The problem I’m having is trying to round a number like 5.999 to two decimal places. This should logically should be rounded to an even 6, but instead it’s being rounded to 5.100, which leads people to believe the number is a lot closer to 5 than 6 :). Any suggestions?
We’re running 9.1.1117, so maybe a bug with the new version. Clients are behaving the same way when reporting results from an analysis, so this isn’t limited to just the debugger.
Definitely an issue which I’m working on fixing. Slight edge case in the handling here which was unfortunate. The 8.2 result (which is indeed correct) should be returned.