Skip to content

Instantly share code, notes, and snippets.

@gastonambrogi
Created March 21, 2017 12:29
Show Gist options
  • Save gastonambrogi/df9ada6a584c4dd30c468962456adddc to your computer and use it in GitHub Desktop.
Save gastonambrogi/df9ada6a584c4dd30c468962456adddc to your computer and use it in GitHub Desktop.
Parse JS float without presicion error (.0000...1)
parseFloat(number.toFixed(2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment