Message175425
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 |
|
Date |
User |
Action |
Args |
2012-11-12 08:53:09 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, mark.dickinson, skrah, tom.pohl |
2012-11-12 08:53:09 | serhiy.storchaka | set | messageid: <1352710389.72.0.392317771219.issue16460@psf.upfronthosting.co.za> |
2012-11-12 08:53:09 | serhiy.storchaka | link | issue16460 messages |
2012-11-12 08:53:09 | serhiy.storchaka | create | |
|