R. David Murray <rdmur...@bitdance.com> added the comment: 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. ---------- nosy: +r.david.murray resolution: -> invalid status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9829> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com