Skip to content

Instantly share code, notes, and snippets.

@goonoo
Created September 3, 2014 08:34
Show Gist options
  • Save goonoo/615c5df2e5f5ae400dfc to your computer and use it in GitHub Desktop.
Save goonoo/615c5df2e5f5ae400dfc to your computer and use it in GitHub Desktop.
super simple number format includes decimal point
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