Its Tuesday and today we are gonna talk about Another JavaScript library which is quite different from others its "Accounting.js". Accounting JS is a tiny library created by Joss which can be used to format the number,money and currency .
I like to Start by showing a Demo so lets have a look below.
I like to Start by showing a Demo so lets have a look below.
Available Mathods
- formatMoney() - format any number into currency
- formatColumn() - format a list of values for column-display
- formatNumber() - format a number with custom precision and localisation
- toFixed() - better rounding for floating point numbers
- unformat() - get a value from any formatted number/currency string
Sample Code
<script type="text/javascript">
// You can do this now:
accounting.formatMoney(5318008);
</script>
Documentation
you can find the Documentation hereThanks for giving your valuable time,Don't forget to comment or share so other can get in touch with this.Have a nice day :)