Mark Dickinson <[email protected]> added the comment:
The aim here is to capture the original Decimal value where possible, including
the exponent information. (Unlike floats, trailing zeros in a `Decimal`
instance are significant.)
>>> from decimal import Decimal
>>> Decimal('+0.0000000000000000000e+19')
Decimal('0')
>>> Decimal('+0.0000000000000000000e+00')
Decimal('0E-19')
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue31684>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com