Better HN
topnewbestaskshowjobs
Log inSign up

sernamar

1 karma · joined Apr 26, 2021 (5y ago) · 1 submissions

sernamar@protonmail.com
Submissions

comment 2y ago · link · parent

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...