Skip to content

Don't compare floats without epsilon #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 7, 2014
Merged

Don't compare floats without epsilon #53

merged 3 commits into from
Nov 7, 2014

Conversation

thiemowmde
Copy link
Contributor

Code that compares floats/doubles with === is just not right.

The smallest possible precision we use is 1 / 3600000, which is about 0.00000027. Therefor the 0.0000001. Decreased to 0.00000001, see DataValues/Geo#29.

Bug: 64820

snaterlicious added a commit that referenced this pull request Nov 7, 2014
Don't compare floats without epsilon
@snaterlicious snaterlicious merged commit 4bc3bac into master Nov 7, 2014
@snaterlicious snaterlicious deleted the ieee branch November 7, 2014 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants