Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mplewis
· 2y ago · 0 comments
Banks typically use a fixed floating point of 1 integer step = 1/100 cent. Is this value configurable in your library?
Comments
[–]
eriksencosta
2y ago
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/...
[–]
pasc1878
2y ago
I doubt Japanese ones do.
[–]
jpollock
2y ago
Yes, because partial units still have meaning when dealing with interest and taxation.