Stefan Krah <ste...@bytereef.org> 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 <rep...@bugs.python.org> <https://bugs.python.org/issue31684> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com