Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to specify rounding in multiply method #328

Open
jtomaszewski opened this issue May 25, 2021 · 1 comment
Open

Allow to specify rounding in multiply method #328

jtomaszewski opened this issue May 25, 2021 · 1 comment

Comments

@jtomaszewski
Copy link

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?

@georgeben
Copy link

No answer on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants