re: Test questions: defining test structures as global variables and quick floating point reference
15 Jul
2010
15 Jul
'10
3:51 p.m.
Misha wrote:
2) 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
5636
Age (days ago)
5636
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dan Kegel