On 4 March 2011 05:51, Igor Chudov <ichu...@gmail.com> wrote:

> I re-wrote Andy's function to compare the absolute value of the diff, and
> compare that to 1E-07. I know that this is crazy, ugly, and stupid.

No, that is perfectly sensible. I should know better by now, it is
never a good idea to check for equality in floating point variables.

-- 
atp
"Torque wrenches are for the obedience of fools and the guidance of wise men"

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to