Float precision and float equality

Anton81 gerenuk81 at googlemail.com
Sat Dec 5 10:37:17 EST 2009


I'd like to do calculations with floats and at some point equality of
two number will be checked.
What is the best way to make sure that equality of floats will be
detected, where I assume that mismatches beyond a certain point are
due to truncation errors?



More information about the Python-list mailing list