10-05-2005 02:51 PM
10-05-2005 03:02 PM - edited 10-05-2005 03:02 PM
DBLs or any floating point numbers are subject to small errors. I took your controls and expanded the precision to 16 digits of precision. This is what I got, which is clearly not equal:
Instead of using an equality comparison, try subtracting the two, taking the absolute value, and then comparing that value to be less than something like 1e-6.
Message Edited by tbob on 10-05-2005 02:03 PM
10-05-2005 03:06 PM
10-05-2005 03:13 PM
10-05-2005 03:29 PM
10-05-2005 03:35 PM
10-05-2005 03:46 PM