Skip to content

Instantly share code, notes, and snippets.

@midoribashikk
Created September 2, 2013 05:36
Show Gist options
  • Save midoribashikk/6409506 to your computer and use it in GitHub Desktop.
Save midoribashikk/6409506 to your computer and use it in GitHub Desktop.
returns a number of digits
return (Math.floor(Math.log10(m)) + 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment