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

Update .toFixed on accounting.min.js #190

Open brianbaso opened 6 years ago

brianbaso commented 6 years ago

.toFixed has been fixed for a binary rounding issue on accounting.js but it has not been fixed on the minimized file. I'm sure there are other bugs also that have been fixed considering min.js has not been updated in years. Can we bring accounting.min.js up to speed with accounting.js?

madmacc commented 3 years ago

@brianbaso Any idea how I can use the accounting.js in Angular rather than accounting.min.js? I am importing like so: import { accounting } from '../../../../../node_modules/accounting/accounting.js'; But I still get the rounding error. e.g. I would expect 1.005 to be 1.01 not 1.00.