Stefan Krah <[email protected]> added the comment:
Yes, from the point of view of decimal it's the right thing:
>>> x = Decimal("1e25").quantize(Decimal("1e30"))
>>> x
Decimal('0E+30')
>>> '{:+.19e}'.format(x)
'+0.0000000000000000000e+49'
>>>
The original magnitude should be traceable (the example is not
perfect but the first thing that quickly came to mind).
----------
_______________________________________
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