I need to do some fee calculator. One suggested me two things:
BigDecimal
as data types. I agree with first one, but do I really need to calculate everything in cents? This will add some conversion operations and make code more complicated.
These are alternatives. You should use BigDecimal
, in dollars.