Comparing floating point values
Posted
by Sauron
on Stack Overflow
See other posts from Stack Overflow
or by Sauron
Published on 2009-10-07T07:28:18Z
Indexed on
2010/03/13
17:55 UTC
Read the original article
Hit count: 670
I just read a statement about the floating point value comparison
Floating point values shall not be compared using either the == or != operators.
Most floating point values have no exact binary representation and have a
limited precision.
If so what is the best method for comparing two floating point values?
© Stack Overflow or respective owner