I changed the fields in my java application that hold currency values from double
to BigDecimal
to prevent strange double rounding issues like "0.20000000000001".
This now created the SQL date types of decimal(19,2)
, which means 2 digits right of the ".". Is this really a better way to store currency values or do I even lose precision this way?