round() function strange behaviour
Joshua Marshall
jmarshal at mathworks.com
Sat Mar 9 19:22:54 EST 2002
brobbins333 at shaw.ca wrote:
> I understand the problem of rounding errors with binary numbers.
> However, the rounding functions of other languages work around it and
> return a usable result. What have they got that Python hasn't got?
Nothing. They probably just display their floating-point numbers differently.
Internally, they get the same result as Python, but display the number in a more
friendly (less accurate) way.
More information about the Python-list
mailing list