Created
March 23, 2013 18:38
-
-
Save kerryChen95/5228915 to your computer and use it in GitHub Desktop.
Float number accuracy.
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
// Why? | |
// too long? How long is too long? | |
Math.ceil(3.0000000000000001); // 3 | |
Math.ceil(3.000000000000001); // 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment