Created
March 21, 2017 12:29
-
-
Save gastonambrogi/df9ada6a584c4dd30c468962456adddc to your computer and use it in GitHub Desktop.
Parse JS float without presicion error (.0000...1)
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
parseFloat(number.toFixed(2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment