Tag Archives: BigDecimal

BigDecimal and “java.lang.ArithmeticException: Non-terminating decimal expansion”

In one of my recent projects, I had to use java.math.BigDecimal to divide two values. I had to use BigDecimal instead of double as this was a financial application and required the results to be accurate. However, after running the … Continue reading

Posted in Java | Tagged , | 54 Comments