Numeral.js

Numeral.js is a tiny JS library for formatting and manipulating numbers. Formats include number of decimals, currency, percentages, time, and more. It is lightweight, easy to localize, has no dependencies, and is available for use in the browser as well as node.js.