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

How to always get value up #217

Open djlxiaoshi opened 4 years ago

djlxiaoshi commented 4 years ago

how can i always get value up when i use toFixed methods eg:
1.36 -> 1.4 accounting.toFixed(1.36, 1) get 1.4 1.11 -> 1.2 accounting.toFixed(1.11, 1) get 1.2