How to round to 2 decimals with Python? - Stack Overflow @martin36, this is not an incorrect result, since 39 555 cannot be represented exactly in floating-point format, so Python will actually store the number 39 554999999999999 , which is correctly rounded to 39 55
What are the under-the-hood differences between round () and numpy . . . Consider the differences between round(2 675 * 10 **2) and round(2 675, 2) Clearly round isn't handling this exactly consistently likely because after multiplying by 100, the value is no longer exactly between the two values