On Wed, Jun 30, 2010 at 1:06 PM, Alastair Houghton
<alast...@alastairs-place.net> wrote:
> I think they test for exact equality.  Whether that's documented or not I'm
> not certain, but disassembling those functions appears to support that
> conclusion.

I see. Hope that will not cause any unexpected problems. For now I am
going to use:

#define cDefaultFloatComparisonEpsilon  0.0001
#define cEqualFloats(f1, f2, epsilon)   ( fabs( (f1) - (f2) ) < epsilon )
#define cNotEqualFloats(f1, f2, epsilon)        ( !cEqualFloats(f1, f2, 
epsilon) )

Thank you for your help.

Regards,

Rimas M.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to