Simple addition

Dan Bishop danb_83 at
Tue Feb 17 01:49:08 CET 2004

"Terry Reedy" <tjreedy at> wrote in message news:<3OadnQovPKs4nqzdRVn-hQ at>...
> "Piet van Oostrum" <piet at> wrote in message
> news:wzisi7b9nj.fsf at
> > >>>>> Brian <pythonista_at_sbcglobal_dot_net at> (B) wrote:
> > [repr(0.1) is ugly!]
> > Unfortunately most C libraries only use the stupid algorithm which often
> > gives some useless digits.
> They are not useless if you want more accuracy about what you have

Why not display the *exact* decimal representation,

> and what you will get with further computation.
> Tracking error expansion is an
> important part of designing floating point calculations.

We're talking about human-readable representation, not calculations.

More information about the Python-list mailing list