Ben
"ben meyer" <
[hidden email]> wrote in message
news:93klt2$b0h9h$
[hidden email]...
> ...
> With 4.0 PL1 evaluating each of the following gives me 'false'
> -2.0e-4 equals: 0.0
> -2.22044604925031e-016 equals: 0.0
> -2.0e-30 equals: 0.0
Hmmm. Well its clearly not working around zero! I think reverting to the
simpler 3.06 definition, as you have done, is probably the best choice for
now, althoug the latter does not work correctly for examples such as the
last of:
1.0e308 equals: 1.000000001e308 "should be false"
1.0e308 equals: 1.0000000001e308 "should be true"
If one interprets the "SignificantDifference" as indicating the number of
significant figures, on the basis that there is no point using a simplistic
comparison between two such large numbers for a difference of 1.0e-9, as
that is way outside the precision of the representation.
Thanks
Blair