Misha wrote:
- Finally, as you have noticed, per Dan's advice, I have implemented
this function: ... These seem, if anything, much simpler, and, I have noticed in the case of very complicated test data, more accurate.
I am going to change my code to use these latter functions, even though they are not technically as good comparators as my current ones.
If the simpler routines work, that's fine, go with what's most readable. It's still good to know about the issues raised in http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm for those times when it's hard to figure out the right epsilon ahead of time. - Dan