Apr 30, 2021
I wouldn't go that way. It does sound like it would work (and in many cases it will). However, for currency transactions whole units are insufficient. Yes, you can get around it but it isn't in my opinion a nice solution around the problem - that is IF you need that precision.
It is your use of the tools that decides which to use. However, using Decimal gives a solution that can support these fractions that you might need (for example in an exchange rate App). If you only require whole units an Integer may suffice, or even a String.