BigInteger abs()
Returns a BigInteger whose value is the absolute value of this BigInteger.
BigInteger add(BigInteger val)
Returns a BigInteger whose value is (this + val).
BigInteger divide(BigInteger val)
Returns a BigInteger whose value is (this / val).
BigInteger[] divideAndRemainder(BigInteger val)
Returns an array of two BigIntegers containing (this / val) followed by (this % val).
BigInteger gcd(BigInteger val)
Returns a BigInteger whose value is the greatest common divisor of abs(this) and abs(val).
BigInteger mod(BigInteger m)
Returns a BigInteger whose value is (this mod m).
BigInteger modInverse(BigInteger m)
Returns a BigInteger whose value is (this-1 mod m).
BigInteger modPow(BigInteger exponent, BigInteger m)
Returns a BigInteger whose value is (thisexponent mod m).
BigInteger multiply(BigInteger val)
Returns a BigInteger whose value is (this * val).
BigInteger negate()
Returns a BigInteger whose value is (-this).
BigInteger pow(int exponent)
Returns a BigInteger whose value is (thisexponent).
BigInteger subtract(BigInteger val)
Returns a BigInteger whose value is (this - val).
BigInteger remainder(BigInteger val)
Returns a BigInteger whose value is (this % val).
int signum()
Returns the signum function of this BigInteger.