Message 80876 - Python tracker (original) (raw)

result is 2.55 and not 2.54. If python doesn't deliver "2.55" as the result of it's rounding algorithm then it's doing it wrong. And if

Sorry, but that's just not true. I suggest that you (a) read the section on floating-point[1] in the Python tutorial, and/or (b) ask about this on comp.lang.python if you feel inclined---there are plenty of people there who would be glad to explain what's going on here.

[1] http://docs.python.org/tutorial/floatingpoint.html