This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients Aaron.Meurer, eric.smith, facundobatista, mark.dickinson, rhettinger, skrah
Date 2017-10-04.19:02:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507143735.71.0.213398074469.issue31684@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2017-10-04 19:02:15skrahsetrecipients: + skrah, rhettinger, facundobatista, mark.dickinson, eric.smith, Aaron.Meurer
2017-10-04 19:02:15skrahsetmessageid: <1507143735.71.0.213398074469.issue31684@psf.upfronthosting.co.za>
2017-10-04 19:02:15skrahlinkissue31684 messages
2017-10-04 19:02:15skrahcreate