Created
March 17, 2014 15:46
-
-
Save armstrongnate/9601778 to your computer and use it in GitHub Desktop.
comparing floats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
epsilon = .000001 | |
x1 and x2 are equal if (fabs(x1 - x2) < epsilon) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment