[Tutor] Python 2.5.4 - error in rounding

Lie Ryan lie.1296 at gmail.com
Fri May 21 17:35:02 CEST 2010


On 05/22/10 01:30, Neven Goršić wrote:
> Thanks!
> It's pity that Python has such unreliable functions so you never know in
> advanced when you will hit new one ...

Well, it's not Python but the machine. Floating point number is not Real
numbers; there are certain limitations imposed by physical limitations.

You can read: What Every Computer Scientist Should Know About
Floating-Point Arithmetic:
http://docs.sun.com/source/806-3568/ncg_goldberg.html


More information about the Tutor mailing list