Last active
June 25, 2021 11:40
-
-
Save Bigismall/abd382e1ee627c85dcb287220aeab363 to your computer and use it in GitHub Desktop.
format number value
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
CAPP.util.IntegerNumberFormat = (function () { | |
return function (value) { | |
return String(value).replace(/(.)(?=(\d{3})+$)/g, "$1 "); | |
}; | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment