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 mark.dickinson
Recipients BTaskaya, mark.dickinson, tim.peters, veky
Date 2020-02-07.08:50:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581065447.34.0.151467782709.issue39576@roundup.psfhosted.org>
In-reply-to
Content
Agreed that this seems surprising.

@Vedran: Trailing zeros in a Decimal object are significant, so `Decimal("2.0")` and `Decimal("2.00")` are different (equal, but different). The rules about the "ideal exponent" of the result of an arithmetic operation are well-specified. In this case, the spec is clear that the answer should be `Decimal("2")`, and not `Decimal("2.0")` or `Decimal("2.00")`, or ....
History
Date User Action Args
2020-02-07 08:50:47mark.dickinsonsetrecipients: + mark.dickinson, tim.peters, veky, BTaskaya
2020-02-07 08:50:47mark.dickinsonsetmessageid: <1581065447.34.0.151467782709.issue39576@roundup.psfhosted.org>
2020-02-07 08:50:47mark.dickinsonlinkissue39576 messages
2020-02-07 08:50:47mark.dickinsoncreate