BigDecimal provides precise control over decimal calculations.
Floating-point types like float and double can introduce rounding errors in calculations, which is unacceptable for financial data. BigDecimal avoids these issues by allowing exact arithmetic operations and precise control over scale and rounding. For example, `BigDecimal.valueOf(0.1).add(BigDecimal.valueOf(0.2))` returns exactly `0.3`, unlike floating-point arithmetic which might not.