Message333550
| Author |
serhiy.storchaka |
| Recipients |
AVINASH MISHRA, jdemeyer, ncoghlan, remi.lapeyre, serhiy.storchaka, vstinner |
| Date |
2019年01月13日.08:52:30 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1547369550.82.0.297480466852.issue35707@roundup.psfhosted.org> |
| In-reply-to |
| Content |
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. |
|