Problem with floating point precision
j_mckitrick
j_mckitrick at bigfoot.com
Tue Aug 17 11:53:35 EDT 2004
I checked the docs, but found nothing about floating point issues.
I am working on an app that deals with currency values, and only does
addition and subtraction (no division). But I am starting to see
values that should be the same failing a compare! What is the
workaround or correct way to compare 2 floats? It worked fine for
months, then suddenly starting acting odd. I might have upgraded
Python somewhere in between, I can't recall.
jonathon
More information about the Python-list
mailing list