
Larry C. answered 04/28/19
Computer Science and Mathematics professional
The result was expecting to be an exact value, but what you have in this case is a result that repeats infinitely. You need to give it some method of handing this sort of thing such as
a.divide(b, 2, RoundingMode.HALF_UP)
where 2 is precision and RoundingMode.HALF_UP is rounding mode