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 remi.lapeyre
Recipients ahmad dana, eric.smith, remi.lapeyre, steven.daprano
Date 2020-04-06.16:08:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586189305.3.0.501167285768.issue40206@roundup.psfhosted.org>
In-reply-to
Content
@Steven Yes that's true, I only meant that in the context of the issue where only the multiplication is used. FWIW Fraction also would have issues with e.g. trigonometric functions right?


@ahmad, that's because you did Decimal(4.6) which first parse 4.6 as a float then call Decimal() with the result. You need to use Decimal('4.6') to avoid the parser reading 4.6 as a float. Have a look at the tutorial Eric Smith linked, the documentation of decimal and the response from Steven D'Aprano for more information.
History
Date User Action Args
2020-04-06 16:08:25remi.lapeyresetrecipients: + remi.lapeyre, eric.smith, steven.daprano, ahmad dana
2020-04-06 16:08:25remi.lapeyresetmessageid: <1586189305.3.0.501167285768.issue40206@roundup.psfhosted.org>
2020-04-06 16:08:25remi.lapeyrelinkissue40206 messages
2020-04-06 16:08:25remi.lapeyrecreate