I want to set scale of two BigDecimal numbers a and b . as in this example :
a
b
BigDecimal a = new BigDecimal(\"2.6E-1095\"); BigD
Try to use roudingMode of setScale method.
Some thing like:
BigDecimal aa = a.setScale(i+j, BigDecimal.ROUND_HALF_DOWN);