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

Possibility to allocate with custom rounding parameter #753

Open
Crovitche-1623 opened this issue Aug 17, 2023 · 0 comments
Open

Possibility to allocate with custom rounding parameter #753

Crovitche-1623 opened this issue Aug 17, 2023 · 0 comments

Comments

@Crovitche-1623
Copy link

Crovitche-1623 commented Aug 17, 2023

In Switzerland, the smallest coin is CHF 0.05. It would be a good new feature to be able to allocate the amount with a custom rounding parameter. For instance by adding a parameter to the allocate function:
$amount->allocate(3, 0.05)

so the result would be :

8 / 3 = 2.65 + 2.65 + 2.70

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

1 participant