Created
March 26, 2015 08:22
-
-
Save gaowhen/786325f7cf0af5c7b00a to your computer and use it in GitHub Desktop.
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
| function prefix_integer(num, length) { | |
| var len = length || 2; | |
| return (num / Math.pow(10, len)).toFixed(len).substr(2); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment