Message303728
> I'm also assuming that Decimal(0) sets both base and exponent to 0.
No, 0 is really special in the IBM specification. The magnitude is
kept, the precision is not.
>>> Decimal("0e10") * Decimal("0e20")
Decimal('0E+30')
>>> Decimal("0.000e10")
Decimal('0E+7')
So we're basically doing the reverse of the above in formatting when a
precision is given. |
|
Date |
User |
Action |
Args |
2017-10-04 19:02:15 | skrah | set | recipients:
+ skrah, rhettinger, facundobatista, mark.dickinson, eric.smith, Aaron.Meurer |
2017-10-04 19:02:15 | skrah | set | messageid: <1507143735.71.0.213398074469.issue31684@psf.upfronthosting.co.za> |
2017-10-04 19:02:15 | skrah | link | issue31684 messages |
2017-10-04 19:02:15 | skrah | create | |
|