This is simple script will convert any raw number into string format with thousand separator. It is useful if you want to show a currency formatted number. Remember, converted value is string, not number.

Run this script and now variable myNumber contains this value: “232,545,355” from previous value: 232545355.

Habibie is an Indonesian Java, C#, PHP, MySQL, HTML5, CSS3 & JavaScript programmer. He is also a good graphic designer, video editor, animator and 3D modeler.

Related Post

JavaScript thousand separator