Message116096
Please read about floating point arithmetic in the tutorial:
http://docs.python.org/tutorial/floatingpoint.html
Also observe that this works:
>>> Fraction(Decimal('1.23'))
Fraction(123, 100)
So yes, it is a limitation in how floating point is represented...in all languages and platforms that use binary floating point. |
|
Date |
User |
Action |
Args |
2010-09-11 14:00:05 | r.david.murray | set | recipients:
+ r.david.murray, bsidhom |
2010-09-11 14:00:04 | r.david.murray | set | messageid: <1284213604.99.0.951397230743.issue9829@psf.upfronthosting.co.za> |
2010-09-11 14:00:03 | r.david.murray | link | issue9829 messages |
2010-09-11 14:00:02 | r.david.murray | create | |
|