| Sr.No. |
Method & Description |
| 1 |
BigInteger abs()
This method returns a BigInteger whose value is the absolute value of this BigInteger.
|
| 2 |
BigInteger add(BigInteger val)
This method returns a BigInteger whose value is (this + val).
|
| 3 |
BigInteger and(BigInteger val)
This method returns a BigInteger whose value is (this & val).
|
| 4 |
BigInteger andNot(BigInteger val)
This method returns a BigInteger whose value is (this & ~val).
|
| 5 |
int bitCount()
This method returns the number of bits in the two's complement representation of this BigInteger that differ from its sign bit.
|
| 6 |
int bitLength()
This method returns the number of bits in the minimal two's-complement representation of this BigInteger, excluding a sign bit.
|
| 7 |
BigInteger clearBit(int n)
This method returns a BigInteger whose value is equivalent to this BigInteger with the designated bit cleared.
|
| 8 |
int compareTo(BigInteger val)
This method compares this BigInteger with the specified BigInteger.
|
| 9 |
BigInteger divide(BigInteger val)
This method returns a BigInteger whose value is (this / val).
|
| 10 |
BigInteger[ ] divideAndRemainder(BigInteger val)
This method returns an array of two BigIntegers containing (this / val) followed by (this % val).
|
| 11 |
double doubleValue()
This method converts this BigInteger to a double.
|
| 12 |
boolean equals(Object x)
This method compares this BigInteger with the specified Object for equality. |
| 13 |
BigInteger flipBit(int n)
This method returns a BigInteger whose value is equivalent to this BigInteger with the designated bit flipped.
|
| 14 |
float floatValue()
This method converts this BigInteger to a float. |
| 15 |
BigInteger gcd(BigInteger val)
This method returns a BigInteger whose value is the greatest common divisor of abs(this) and abs(val).
|
| 16 |
int getLowestSetBit()
This method returns the index of the rightmost (lowest-order) one bit in this BigInteger (the number of zero bits to the right of the rightmost one bit). |
| 17 |
int hashCode()
This method returns the hash code for this BigInteger.
|
| 18 |
int intValue()
This method converts this BigInteger to an int.
|
| 19 |
boolean isProbablePrime(int certainty)
This method returns true if this BigInteger is probably prime, false if it's definitely composite.
|
| 20 |
long longValue()
This method converts this BigInteger to a long.
|
| 21 |
BigInteger max(BigInteger val)
This method returns the maximum of this BigInteger and val.
|
| 22 |
BigInteger min(BigInteger val)
This method returns the minimum of this BigInteger and val.
|
| 23 |
BigInteger mod(BigInteger m)
This method returns a BigInteger whose value is (this mod m).
|
| 24 |
BigInteger modInverse(BigInteger m)
This method returns a BigInteger whose value is (this-1 mod m).
|
| 25 |
BigInteger modPow(BigInteger exponent, BigInteger m)
This method returns a BigInteger whose value is (thisexponent mod m).
|
| 26 |
BigInteger multiply(BigInteger val)
This method returns a BigInteger whose value is (this * val).
|
| 27 |
BigInteger negate()
This method returns a BigInteger whose value is (-this).
|
| 28 |
BigInteger nextProbablePrime()
This method returns the first integer greater than this BigInteger that is probably prime. |
| 29 |
BigInteger not()
This method returns a BigInteger whose value is (~this).
|
| 30 |
BigInteger or(BigInteger val)
This method returns a BigInteger whose value is (this | val).
|
| 31 |
BigInteger pow(int exponent)
This method returns a BigInteger whose value is (thisexponent).
|
| 32 |
static BigInteger probablePrime(int bitLength, Random rnd)
This method returns a positive BigInteger that is probably prime, with the specified bitLength.
|
| 33 |
BigInteger remainder(BigInteger val)
This method returns a BigInteger whose value is (this % val).
|
| 34 |
BigInteger setBit(int n)
This method returns a BigInteger whose value is equivalent to this BigInteger with the designated bit set.
|
| 35 |
BigInteger shiftLeft(int n)
This method returns a BigInteger whose value is (this << n).
|
| 36 |
BigInteger shiftRight(int n)
This method returns a BigInteger whose value is (this >> n).
|
| 37 |
int signum()
This method returns the signum function of this BigInteger.
|
| 38 |
BigInteger subtract(BigInteger val)
This method returns a BigInteger whose value is (this - val).
|
| 39 |
boolean testBit(int n)
This method returns true if and only if the designated bit is set.
|
| 40 |
byte[ ] toByteArray()
This method returns a byte array containing the two's-complement representation of this BigInteger.
|
| 41 |
String toString()
This method returns the decimal String representation of this BigInteger.
|
| 42 |
String toString(int radix)
This method returns the String representation of this BigInteger in the given radix.
|
| 43 |
static BigInteger valueOf(long val)
This method returns a BigInteger whose value is equal to that of the specified long.
|
| 44 |
BigInteger xor(BigInteger val)
This method returns a BigInteger whose value is (this ^ val).
|