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 serhiy.storchaka
Recipients serhiy.storchaka, yudongliu
Date 2019-11-05.20:08:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572984507.12.0.889442479478.issue38703@roundup.psfhosted.org>
In-reply-to
Content
0.95 is actually 278419646001971/4503599627370496 which is smaller than 95/100.

>>> from fractions import Fraction
>>> Fraction(0.95)
Fraction(4278419646001971, 4503599627370496)
>>> Fraction(0.95) - Fraction(95, 100)
Fraction(-1, 22517998136852480)

It is closer to 0.9 than to 1.0.

>>> Fraction(0.95) - Fraction(0.9)
Fraction(450359962737049, 9007199254740992)
>>> Fraction(1) - Fraction(0.95)
Fraction(225179981368525, 4503599627370496)
>>> (Fraction(1) - Fraction(0.95)) - (Fraction(0.95) - Fraction(0.9))
Fraction(1, 9007199254740992)
History
Date User Action Args
2019-11-05 20:08:27serhiy.storchakasetrecipients: + serhiy.storchaka, yudongliu
2019-11-05 20:08:27serhiy.storchakasetmessageid: <1572984507.12.0.889442479478.issue38703@roundup.psfhosted.org>
2019-11-05 20:08:27serhiy.storchakalinkissue38703 messages
2019-11-05 20:08:27serhiy.storchakacreate