The methods of Java.Math.BigInteger are listed below. For a list of all members, see the BigInteger Members list.
See Also: Inherited members from Java.Lang.Number
Abs()Returns a BigInteger whose value is the absolute value of this. | ||
Add(BigInteger)Returns a BigInteger whose value is this + value. | ||
And(BigInteger)Returns a BigInteger whose value is this & value. | ||
AndNot(BigInteger)Returns a BigInteger whose value is this & ~value. | ||
BitCount()Returns the number of bits in the two's complement representation of this which differ from the sign bit. | ||
BitLength()Returns the length of the value's two's complement representation without leading zeros for positive numbers / without leading ones for negative values. | ||
ClearBit(int)Returns a BigInteger which has the same binary representation as this but with the bit at position n cleared. | ||
CompareTo(BigInteger)Compares this BigInteger with value. | ||
Divide(BigInteger)Returns a BigInteger whose value is this / divisor. | ||
DivideAndRemainder(BigInteger)Returns a two element BigInteger array containing this / divisor at index 0 and this % divisor at index 1. | ||
override | DoubleValue()Returns this BigInteger as a double. | |
FlipBit(int)Returns a BigInteger which has the same binary representation as this but with the bit at position n flipped. | ||
override | FloatValue()Returns this BigInteger as a float. | |
Gcd(BigInteger)Returns a BigInteger whose value is greatest common divisor of this and value. | ||
override | IntValue()Returns this BigInteger as an int value. | |
IsProbablePrime(int)Tests whether this BigInteger is probably prime. | ||
override | LongValue()Returns this BigInteger as a long value. | |
Max(BigInteger)Returns the maximum of this BigInteger and value. | ||
Min(BigInteger)Returns the minimum of this BigInteger and value. | ||
Mod(BigInteger)Returns a BigInteger whose value is this mod m. | ||
ModInverse(BigInteger)Returns a BigInteger whose value is 1/this mod m. | ||
ModPow(BigInteger, BigInteger)Returns a BigInteger whose value is pow(this, exponent) mod modulus. | ||
Multiply(BigInteger)Returns a BigInteger whose value is this * value. | ||
Negate()Returns a BigInteger whose value is the -this. | ||
NextProbablePrime()Returns the smallest integer x > this which is probably prime as a BigInteger instance. | ||
Not()Returns a BigInteger whose value is ~this. | ||
Or(BigInteger)Returns a BigInteger whose value is this | value. | ||
Pow(int)Returns a BigInteger whose value is pow(this, exp). | ||
static | ProbablePrime(int, Java.Util.Random)Returns a random positive BigInteger instance in the range [0, pow(2, bitLength)-1] which is probably prime. | |
Remainder(BigInteger)Returns a BigInteger whose value is this % divisor. | ||
SetBit(int)Returns a BigInteger which has the same binary representation as this but with the bit at position n set. | ||
ShiftLeft(int)Returns a BigInteger whose value is this . | ||
ShiftRight(int)Returns a BigInteger whose value is this >> n. | ||
Signum()Returns the sign of this BigInteger. | ||
Subtract(BigInteger)Returns a BigInteger whose value is this - value. | ||
TestBit(int)Tests whether the bit at position n in this is set. | ||
ToByteArray()Returns the two's complement representation of this BigInteger in a byte array. | ||
ToString(int)Returns a string containing a string representation of this BigInteger with base radix. | ||
static | ValueOf(long)Returns a BigInteger whose value is equal to value. | |
Xor(BigInteger)Returns a BigInteger whose value is this ^ value. |