Bios-Marcel / baka

My stupid personal financial management
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Consider using moneta insteadof BigDecimal for money #17

Open Bios-Marcel opened 1 month ago

Bios-Marcel commented 1 month ago

We are currently rendering 36,60€ as 36,6. While there are formatters for rendering currency, parsing does not work well, as they expect NBSPs between the amount and the currency sign. The currency sign is also required.

On top of that, parsing with BigDecimal is pretty overkill, as in personal finance, there shouldn't be partial cents, especially not 1/1000000 of a cent or something like that.