Created
February 6, 2014 08:56
-
-
Save snowman-repos/8840656 to your computer and use it in GitHub Desktop.
Rounding number to N decimal place
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
num = 2.443242342 | |
num = num.toFixed(4) # num will be equal to 2.4432 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment