Description

BigInteger(byte[] val)

BigInteger(String val)

BigInteger abs()

Initialize the BigInteger instance to the integer that is stored in the val array, with val[0] storing the integer's most significant (leftmost) eight bits. This constructor throws NullPointerException when val is null, and NumberFormatException when val.length equals 0.

Initialize the BigInteger instance to the integer equivalent of val. This constructor throws NullPointerException when val is null, and NumberFormatException when val's string representation is invalid (contains letters, for example).

Return a new BigInteger instance that contains the absolute value of the current instance's value.

BigInteger add(BigInteger augend)

BigInteger divide(BigInteger divisor)

BigInteger max(BigInteger val)

BigInteger min(BigInteger val)

Return a new BigInteger instance that contains the sum of the current value and the argument value. This method throws NullPointerException when augend is null.

Return a new BigInteger instance that contains the quotient of the current value divided by the argument value. This method throws NullPointerException when divisor is null, and ArithmeticException when divisor represents 0 or the result cannot be represented exactly.

Return either this or val, whichever BigInteger instance contains the larger value. This method throws NullPointerException when val is null.

Return either this or val, whichever BigInteger instance contains the smaller value. This method throws NullPointerException when val is null.

Method

Was this article helpful?

0 0

Post a comment