by Etheryte · 2y ago · 0 comments
There's an example for the Swiss Franc in the README (the code is here [1]).
[0] https://github.com/sernamar/dinero
[1] https://github.com/sernamar/dinero/blob/main/src/dinero/roun...
So rounding for cash is a different problem that rounding money in general.
You may want to tell that to my wallet, as well as the payments I make with them. There's a cool 37 billion coins outside in the wild, so you're going to find them rather easily throughout Europe, even if your own country has stopped using them.
Check for more: https://github.com/eriksencosta/money/blob/trunk/docs/usage/...
Canada has these guidelines: https://www.canada.ca/en/revenue-agency/programs/about-canad...