/ Published in: JavaScript
format numbers in javascript with group digits
Expand |
Embed | Plain Text
Number.prototype.format = function () { return this.toString().split( /(?=(?:\d{3})+(?:\.|$))/g ).join( "," ); };
You need to login to post a comment.
