I am doing this:
(obj.getValue().divide(weight)).setScale(3, RoundingMode.HALF_DOWN)
and I am getting this error :
java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result.
Where do I need to put the setScale?
Thanks