News for hackers. Stuff that matters.

sernamar

Re:Kotlin Money on Tuesday October 08, 2024 @05:27PM (#41781995)
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

[1] https://github.com/sernamar/dinero/blob/main/src/dinero/roun...