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.

Show source
Register or log in to add new notes.