Skip to content

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.

3 participants