Java.Math.BigInteger Members

The members of Java.Math.BigInteger are listed below.

See Also: Inherited members from Java.Lang.Number

Public Constructors

Constructs a new BigInteger from the given two's complement representation.
Constructs a new BigInteger by parsing value.
Constructs a random non-negative BigInteger instance in the range [0, pow(2, numBits)-1].
Constructs a new BigInteger instance with the given sign and magnitude.
Constructs a new BigInteger instance by parsing value.
Constructs a random BigInteger instance in the range [0, pow(2, bitLength)-1] which is probably prime.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
LowestSetBitint. Returns the position of the lowest set bit in the two's complement representation of this BigInteger.
[read-only]
static
OneBigInteger. The BigInteger constant 1.
[read-only]
static
TenBigInteger. The BigInteger constant 10.
[read-only]
static
ZeroBigInteger. The BigInteger constant 0.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

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.

Explicitly Implemented Interface Members

Java.Lang.IComparable.CompareToDocumentation for this section has not yet been entered.