Skip to content

Instantly share code, notes, and snippets.

@samdmarshall
Created May 2, 2012 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samdmarshall/2576494 to your computer and use it in GitHub Desktop.
Save samdmarshall/2576494 to your computer and use it in GitHub Desktop.
#import <math.h>
static inline BOOL FloatEqual(float a, float b) {
return (fabs(a-b) < FLT_EPSILON);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment