Knockout Decimal Extender
A simple knockout extender for decimals that wraps accounting.js.
Bower
Install withbower install knockout-decimal
Then add knockout.decimal.js
to your project.
How to Use
Include the script on your page (either via a normal script tag or via an AMD loader). Then use it like so:
var dec = ko;; console; //17000console; //17,000.00
You can also use it to set formatted decimal as a value. This is useful for binding user-editable text boxes to the formatted
computed.
dec;console; //17000.56