Closed Hattshire closed 2 years ago
Sounds reasonable. Since the amount is stored as an integer internally, this shouldn't be too hard.
+1 I was thinking of opening an issue on this exact thing, just didn't get around to doing it before this was already here :)
I am now working on this. I plan to allow 0 to 3 decimals, scrolling through this list, this should be sufficient.
One question is, how changing the number of decimals should affect existing data. I see two approaches here:
I probably will ask the user what to do upon every change of the setting.
One more thing: this setting should be prominently advertised to the user upon first start.
Any thoughts?
I think rounding the numbers on change is fine. On the idea of a startup screen, it is fine as long as it only appears on the first startup after an update. Otherwise it would be an annoyance.
Note to self: it is essential to implement #61 when releasing this, since restoring a backup in a fresh install could else cause the wrong amounts to be displayed (backed up with a setting other than 2 decimals, restoring before changing that setting from the default two of a fresh install)
My country doesn't have fractions of currency, so it's kind of annoying having add 2 extra zeros every time a new transaction is added 😔