Put Comma Values in Numbers


/ Published in: JavaScript
Save to your folder(s)

This function assumes what is being submitted to it is a string, with a decimal point and two places after the decimal. To get your number into that format first, use this.

Then this function will properly comma separate the number. For example, 2345643.00 will return 2,345,643.00

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.