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.95k stars 528 forks source link

formatMoney return wrong rounding #195

Open mazipan opened 6 years ago

mazipan commented 6 years ago

I used formatMoney but unfortunately it return wrong rounding value.

e.g. 9.075. It round's to 9.07 and not 7.08.

zdanowiczkonrad commented 5 years ago

Looks like this project is unmaintained... Feel free to use my lightweight alternative that I developed for my own purpose, that handles the rounding issues depending on the precision you want - number-currency-format. Any comments welcomed!