This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients christian.heimes, gvanrossum, nascheme, noam, rhettinger, tim.peters
Date 2007-12-12.00:06:46
SpamBayes Score 0.077984124
Marked as misclassified No
Message-id <ca471dc20712111606q46c1f464j2cd51dab4bb4acbc@mail.gmail.com>
In-reply-to <b348a0850712111546j52458e2br26c171a1b01516e1@mail.gmail.com>
Content
> If I were in that situation I would prefer to store the binary
> representation. But if someone really needs to store decimal floats,
> we can add a method "fast_repr" which always calculates 17 decimal
> digits.

They can just use "%.17g" % x

> Decimal to binary conversion, in any case, shouldn't be slower than it
> is now, since on Gnu it is done anyway, and I don't think that our
> implementation should be much slower.

Sure.
History
Date User Action Args
2007-12-12 00:06:46gvanrossumsetspambayes_score: 0.0779841 -> 0.077984124
recipients: + gvanrossum, tim.peters, nascheme, rhettinger, christian.heimes, noam
2007-12-12 00:06:46gvanrossumlinkissue1580 messages
2007-12-12 00:06:46gvanrossumcreate