danb_83 at yahoo.com
Tue Feb 17 01:49:08 CET 2004
"Terry Reedy" <tjreedy at udel.edu> wrote in message news:<3OadnQovPKs4nqzdRVn-hQ at comcast.com>...
> "Piet van Oostrum" <piet at cs.uu.nl> wrote in message
> news:wzisi7b9nj.fsf at cs.uu.nl...
> > >>>>> Brian <pythonista_at_sbcglobal_dot_net at invalid.net> (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