openexchangerates / accounting.js

A lightweight JavaScript library for number, money and currency formatting - fully localisable, zero dependencies.
http://openexchangerates.github.io/accounting.js
MIT License
4.96k stars 530 forks source link

add settings to allowNegative and allowRoundOff #193

Open skypirates17 opened 6 years ago

skypirates17 commented 6 years ago

may be we can add another settings if negative numbers(sign) are allowed or not. and also for rounding off decimal numbers, because i don't include decimals in my system, and when it was formatted whole numbers are rounded off