method

add

add(p1, p2)
public

+

Add the specified value.

e.g.

c = a.add(b,n)
c = a + b

digits

If specified and less than the number of significant digits of the result, the result is rounded to that number of digits, according to BigDecimal.mode.