News for hackers. Stuff that matters.
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?
Re:Kotlin Money by pasc1878 on Tuesday October 08, 2024 @12:46PM (#41779273)
I doubt Japanese ones do.
Re:Kotlin Money by jpollock on Tuesday October 08, 2024 @02:13PM (#41780164)
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/...