method

sub

sub(p1, p2)
public

sub(value, digits) -> bigdecimal

Subtract the specified value.

e.g.

c = a.sub(b,n)

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.