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

toFixed not work for large number #204

Open PrescottPS opened 5 years ago

PrescottPS commented 5 years ago

when I call accounting.toFixed(123456789123456.12, 3), expect the result 123456789123456.120 but got 123456789123456.125