public BigInteger remainder (BigInteger val)

Returns a BigInteger whose value is (this % val).

Parameters:
val    value by which this BigInteger is to be divided, and the remainder computed.

Returns:  this % val

Exceptions:
ArithmeticException    if val is zero.