Created
April 14, 2014 15:04
-
-
Save DamienBell/10656262 to your computer and use it in GitHub Desktop.
make it rain. Convert a number to dollars
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
function dollars(num){ | |
num= Number(num); | |
return Math.round(num*100)/100 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment