I\'m using the following function to format numbers as the user types. It will insert a comma every 3 numbers. Ex: 45696.36 becomes 45,696.36.
45696.36
45,696.36
I use accounting.js lib:
accounting.format(1136.6696, 4) // 1,136.6696