Created
September 3, 2014 08:34
-
-
Save goonoo/615c5df2e5f5ae400dfc to your computer and use it in GitHub Desktop.
super simple number format includes decimal point
This file contains hidden or 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
number_format = (num) -> return String(num).replace(/(\d)(?=(\d{3})+\b)/g,'$1,') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment