4 ms·
I'm working on a Clojure library for working with money [0] that handles specific rounding rules by passing a custom rounding function to the round function, al
by sernamar 2y ago
I'm working on a Clojure library for working with money [0] that handles specific rounding rules by passing a custom rounding function to the round function, allowing you to specify different rules as needed.
There's an example for the Swiss Franc in the README (the code is here [1]).
[0] https://github.com/sernamar/dinero https://github.com/sernamar/dinero
[1] https://github.com/sernamar/dinero/blob/main/src/dinero/rounding.clj https://github.com/sernamar/dinero/blob/main/src/dinero/roun...