Tuesday, October 22, 2013

comment_icon 0 JavaScript Libarary - Accounting JS

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 hope you like the demo and wanna try it in your projects so lets move on and see what are the features of this JavaScript Library.

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 here

Thanks for giving your valuable time,Don't forget to comment or share so other can get in touch with this.Have a nice day :)