Skip to content

Instantly share code, notes, and snippets.

@nlaplante
Created January 21, 2013 00:47
Show Gist options
  • Select an option

  • Save nlaplante/4582861 to your computer and use it in GitHub Desktop.

Select an option

Save nlaplante/4582861 to your computer and use it in GitHub Desktop.
Possible fix for floating pointnumber comparison in angular-google-maps https://github.com/nlaplante/angular-google-maps/issues/9
function floatEqual (f1, f2) {
return (Math.abs(f1 - f2) < 0.000001);
}
@nlaplante
Copy link
Author

This code has been taken from this solution on stackoverflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment