[issue1559] round() does not

travelgirl report at bugs.python.org
Wed Dec 5 22:01:33 CET 2007


travelgirl added the comment:

interesting, and expected as the BCD calculation.  however, the round function should be able to handle that correctly, dealing with the number in a string fashion as opposed a mathematical one, to display the requested decimal places.  slower, to be sure, but hella accurate.

that's what the bug was about.  i understand the issues with BCD.  i don't understand how a function to display a number can get the display so wrong, even when the BCD number itself "fails" to the 15th place.  round to 2 places, you should still display 14.78, not 14.7799999999999999x

just my take.  thanks for getting back to me.

00 caren
http://www.parkgallery.org
george davis creek, north fork

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1559>
__________________________________


More information about the Python-bugs-list mailing list