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 r.david.murray
Recipients bsidhom, r.david.murray
Date 2010-09-11.14:00:02
SpamBayes Score 0.05027038
Marked as misclassified No
Message-id <1284213604.99.0.951397230743.issue9829@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-09-11 14:00:05r.david.murraysetrecipients: + r.david.murray, bsidhom
2010-09-11 14:00:04r.david.murraysetmessageid: <1284213604.99.0.951397230743.issue9829@psf.upfronthosting.co.za>
2010-09-11 14:00:03r.david.murraylinkissue9829 messages
2010-09-11 14:00:02r.david.murraycreate