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.

作者 serhiy.storchaka
收信人 AVINASH MISHRA, jdemeyer, ncoghlan, remi.lapeyre, serhiy.storchaka, vstinner
日期 2019-01-13.08:52:30
SpamBayes Score -1.0
Marked as misclassified
Message-id <1547369550.82.0.297480466852.issue35707@roundup.psfhosted.org>
In-reply-to
内容
This can cause a loss of precision for Decimal.

If we want to support other numerical types with loss in double rounding, the most reliable way is to represent them as fractions (x.as_integer_ratio() or (x.numerator, x.denominator)) and use precise integer arithmetic.
历史
日期 用户 动作 参数
2019-01-13 08:52:31serhiy.storchaka修改recipients: + serhiy.storchaka, ncoghlan, vstinner, jdemeyer, remi.lapeyre, AVINASH MISHRA
2019-01-13 08:52:30serhiy.storchaka修改messageid: <1547369550.82.0.297480466852.issue35707@roundup.psfhosted.org>
2019-01-13 08:52:30serhiy.storchaka链接issue35707 messages
2019-01-13 08:52:30serhiy.storchaka创建