Java.Math.BigInteger: Method Members

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

Public Methods

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