Message303719
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). |
|
Date |
User |
Action |
Args |
2017-10-04 17:40:02 | skrah | set | recipients:
+ skrah, rhettinger, facundobatista, mark.dickinson, eric.smith, Aaron.Meurer |
2017-10-04 17:40:01 | skrah | set | messageid: <1507138801.98.0.213398074469.issue31684@psf.upfronthosting.co.za> |
2017-10-04 17:40:01 | skrah | link | issue31684 messages |
2017-10-04 17:40:01 | skrah | create | |
|