[Tutor] Python 2.5.4 - error in rounding

Alan Gauld alan.gauld at btinternet.com
Fri May 21 23:56:12 CEST 2010


"Neven Goršić" <neven.gorsic at gmail.com> wrote

> It's pity that Python has such unreliable functions so
> you never know in advanced when you will hit new one ...

The functions are not unreliable. That would imply they
give out unpredictable answers. In fact the answers are
completely predictable and consistent and correct.
They are just working with binary floating point not
decimal real numbers. As humans educated to use
real numbers we have to get used to that.

Alan G. 




More information about the Tutor mailing list