Stefan Krah <[email protected]> added the comment:
I don't think format() destroys the information:
>>> '{:+.19e}'.format(Decimal("0.00000e20"))
'+0.0000000000000000000e+34'
The original magnitude was e+15, after formatting it's still e+15.
----------
_______________________________________
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