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 sim1234
Recipients sim1234
Date 2021-02-24.10:59:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614164388.53.0.057673280167.issue43315@roundup.psfhosted.org>
In-reply-to
Content
str(Decimal("0.00000001")) always returns "1E-8" and there is no way to directly get the "0.00000001" string back without writting custom method for converting DecimalTuple to string. This is caused by arbitrary choice of `and leftdigits > -6` condition in https://github.com/python/cpython/blob/master/Lib/_pydecimal.py#L1052 .
The hardcoded value of -6 should be parametrizable. This can be done by adding it as argument to the __str__ method or maybe by adding it to the decimal context.
History
Date User Action Args
2021-02-24 10:59:48sim1234setrecipients: + sim1234
2021-02-24 10:59:48sim1234setmessageid: <1614164388.53.0.057673280167.issue43315@roundup.psfhosted.org>
2021-02-24 10:59:48sim1234linkissue43315 messages
2021-02-24 10:59:47sim1234create