Message118661
No, just a result of the finite machine representation of
floats:
>>> repr(1.255)
'1.2549999999999999'
so the machine representation of 1.255 is actually less
than that value and round() is doing the right thing. |
|
Date |
User |
Action |
Args |
2010-10-14 13:55:53 | skip.montanaro | set | recipients:
+ skip.montanaro, Retro |
2010-10-14 13:55:53 | skip.montanaro | set | messageid: <1287064553.43.0.496031073981.issue10101@psf.upfronthosting.co.za> |
2010-10-14 13:55:51 | skip.montanaro | link | issue10101 messages |
2010-10-14 13:55:51 | skip.montanaro | create | |
|