Avoid using BigDecimal with primitive types directly.
BigDecimal should not be directly used with primitive types due to precision concerns. Converting a double to BigDecimal using the constructor can lead to precision loss. Instead, use `BigDecimal.valueOf(double)` for accurate representation. For instance, `BigDecimal.valueOf(0.1)` ensures the correct value is used.