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

Currency rounding based on smallest amount possible #71

Open
frne opened this issue Aug 2, 2016 · 2 comments
Open

Currency rounding based on smallest amount possible #71

frne opened this issue Aug 2, 2016 · 2 comments
Labels

Comments

@frne
Copy link

frne commented Aug 2, 2016

In some currencies (e.g. CHF), the smallest spendable amount is not 1, but 5 cents. So rounding a price to 2.73 doesn't not make much sense, because it's not payable. Instead it should be rounded to 2.75.

Is there any functionality / convenient way without wrapping the whole Money object?

@jodastephen
Copy link
Member

The current code does not support this concept. There is a case to allow this data to be added to the currency files, but it would probably have to be opt-in.

@valh1996
Copy link

+1 This built-in feature would be very welcome

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

No branches or pull requests

3 participants