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 mark.dickinson, serhiy.storchaka, skrah, tom.pohl
Date 2012-11-12.08:53:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352710389.72.0.392317771219.issue16460@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, this is related to the internal representation of floating-point numbers.  0.1 is 3602879701896397/36028797018963968 in float.

>>> import fractions
>>> fractions.Fraction(0.1)
Fraction(3602879701896397, 36028797018963968)
>>> 36028797018963968 / 3602879701896397
10.0
>>> 36028797018963968 // 3602879701896397
9
History
Date User Action Args
2012-11-12 08:53:09serhiy.storchakasetrecipients: + serhiy.storchaka, mark.dickinson, skrah, tom.pohl
2012-11-12 08:53:09serhiy.storchakasetmessageid: <1352710389.72.0.392317771219.issue16460@psf.upfronthosting.co.za>
2012-11-12 08:53:09serhiy.storchakalinkissue16460 messages
2012-11-12 08:53:09serhiy.storchakacreate