Re:Kotlin Money
by mplewis on Tuesday October 08, 2024 @11:40AM
(#41778575)
Banks typically use a fixed floating point of 1 integer step = 1/100 cent. Is this value configurable in your library?
[ Parent
| on HN ]
I doubt Japanese ones do.
Yes, because partial units still have meaning when dealing with interest and taxation.
Re:Kotlin Money
by eriksencosta on Tuesday October 08, 2024 @03:24PM
(#41780838)
Yep, it is. However, you must create a custom currency to arbitrarily define the minor units you need: https://github.com/eriksencosta/money/blob/trunk/docs/usage/...