LR said:
That faq says why it isn't working, but doesn't give much insite into how to
get it to work. Yes, my mind is blown. I always depended on my compiler
being smart enough to know how to give me the result of a floating point
comparison accurately. If one value is differant than another depending on
its storage, I would think the compiled code would make sure they are stored
the same way when comparing...guess not. Can't point the finger though. I
haven't exactly written my own compiler or created any floating point
hardware. The remaining question is, how to safely compare two doubles with
all of the comparison operators and how to safely perform arithmetic on
floating point numbers and get the desired results? I figured that was the
entire purpose if this comparison function existing in the first
place...since we can't rely on a built in < , >, or == operator.