You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our use case: Let's say we have 0.25 USD amount, from which we are calculating fee 2% . That would equal to 0.25 * 0.02 = 0.0005 USD which is half of cent.
currency.js currently rounds that up to 0.01 USD
We would however in some cases prefer it to round down (to 0 USD).
How can we influence currency.js so that it uses different way of rounding to the nearest cent?
The text was updated successfully, but these errors were encountered:
Our use case: Let's say we have
0.25 USD
amount, from which we are calculating fee2%
. That would equal to0.25 * 0.02 = 0.0005 USD
which is half of cent.currency.js currently rounds that up to
0.01 USD
We would however in some cases prefer it to round down (to
0 USD
).How can we influence currency.js so that it uses different way of rounding to the nearest cent?
The text was updated successfully, but these errors were encountered: