BigIntegerStatic |
Name | Description |
---|---|
MinusOne (get) | Returns a shared BigInteger instance with the value of -1. |
One (get) | Returns a shared BigInteger instance with the value of 1. |
Ten (get) | Returns a shared BigInteger instance with the value of 10. |
Zero (get) | Returns a shared BigInteger instance with the value of 0. |
Name | Description |
---|---|
Absolute | Returns the absolute (positive or zero) value of this instance. |
Add | Adds two BigInteger value instances together, returning the sum. |
BitwiseAnd | Peforms a bitwise AND operation, returning the result. |
BitwiseAndNot | Peforms a bitwise AND operation after NOTting the second operand, returning the result. |
BitwiseNot | Peforms a bitwise NOT of this BigInteger instance. |
BitwiseOr | Peforms a bitwise OR operation, returning the result. |
BitwiseXor | Peforms a bitwise XOR operation, returning the result. |
ClearBit | Clears the specified bit of the BigInteger instance to 0. |
Compare | Compares two BigInteger instances to each other returning their relation. |
Divide | Divides one BigInteger value by another, returning the quotient. |
DivRem | Divides one BigInteger value by another, returning both the quotient and remainder. |
Equals | Returns the equality of two BigInteger values. |
Factorial | Calculates the factorial of a BigInteger value. |
FlipBit | Flips the specified bit, toggling between True and False. |
GreatestCommonDivisor | Returns the greatest common divisor between the two BigInteger values. |
Max | Returns the maximum of the two BigInteger values. |
Min | Returns the mininum of the two BigInteger values. |
ModPow | Performs a modulo on a BigInteger value raised to a power. b = (x^y) mod z. |
Modulus | Returns the remainder of division between two BigInteger values. |
Multiply | Multiplies BigInteger values, returning their product. |
Negate | Returns the opposite signed value of this BigInteger instance. |
Parse | Attemps to parse a string of characters of the specified base type. |
Pow | Raise a base value to the specified power. |
Randomize | Randomizes the Rnd function. |
Rnd | Generates a random BigInteger number of the specified size. |
SeedRnd | Sets the seeding of the Rnd function. |
SetBit | Sets the specified bit of the BigInteger instance to 1. |
ShiftLeft | Performs a left shift operation on the BigInteger instance. |
ShiftRight | Performs a bit shifting operation to the the right. |
SquareRoot | Returns the integer square root of a BigInteger. |
Subtract | Subtracts one BigInteger value from another, returning the difference. |
TestBit | Tests a specific bit in the BigInteger number to determine if it is set (1) or not (0). |
ToString | Returns a human readable string of characters representing the number. |
TryParse | Attemps to parse a string of characters of the specified base type. |
TryParseEx | Tries to convert the string representation of a number in a specified style and culture-specific format to its BigInteger equivalent, and returns a value that indicates whether the conversion succeeded. |
The methods provided by this class are accessed through the convention of BigInteger.MethodName.
Dim b As BigInteger Set b = BigInteger.Rnd(128) Set b = BigInteger.Pow(b, BInt(3))
Most of these methods exist in the BigInteger class and can be used directly with BigInteger objects. The primary advantage of using the methods defined in this class is that a value of Nothing can be passed in and will be treated as a value of 0.