BigIntegerStatic

BigIntegerStatic


Provides methods used to manipulate BigInteger objects.


Remarks

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 BitInteger 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.

See Also

Project VBCorLib Overview

Public:

Properties:

NameDescription
 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. 

Methods:

NameDescription
 AbsoluteReturns the absolute (positive or zero) value of this instance. 
 AddAdds two BigInteger value instances together, returning the sum. 
 AndBitsPeforms a bitwise AND operation, returning the result. 
 AndNotBitsPeforms a bitwise AND operation after NOTting the second operand, returning the result. 
 ClearBitClears the specified bit of the BigInteger instance to 0. 
 CompareCompares two BigInteger instance to each other returning their relation. 
 DivideDivides one BigInteger value by another, returning the quotient. 
 DivRemDivides one BigInteger value by another, returning both the quotient and remainder. 
 EqualsReturns the equality of two BigInteger values. 
 FactorialCalculates the factorial of an integer value. 
 FlipBitFlips the specified bit, toggling between True and False. 
 GreatestCommonDivisorReturns the greatest common divisor between the two BigInteger values. 
 MaxReturns the maximum of the two BigInteger values. 
 MinReturns the mininum of the two BigInteger values. 
 ModPowPerforms a modulo on a BigInteger value raised to a power. b = (x^y) mod z. 
 ModulusReturns the modulus (remainder) of division between two BigInteger values. 
 MultiplyMultiplies BigInteger values, returning their product. 
 NegateReturns the opposite signed value of this BigInteger instance. 
 NotBitsPeforms a bitwise NOT of this BigInteger instance. 
 OrBitsPeforms a bitwise OR operation, returning the result. 
 ParseAttemps to parse a string of characters of the specified base type. 
 PowRaise a base value to the specified power. 
 RandomizeRandomizes the Rnd function. 
 RndGenerates a random BigInteger number of the specified size. 
 SeedRndSets the seeding of the Rnd function. 
 SetBitSets the specified bit of the BigInteger instance to 1. 
 ShiftLeftPerforms a left shift operation on the BigInteger instance. 
 ShiftRightPerforms a bit shifting operation to the the right. 
 SquareRootReturns the integer square root of a BigInteger. 
 SubtractSubtracts one BigInteger value from another, returning the difference. 
 TestBitTests a specific bit in the BigInteger number to determine if it is set (1) or not (0). 
 ToStringReturns a human readable string of characters representing the number. 
 TryParseAttemps to parse a string of characters of the specified base type. 
 XorBitsPeforms a bitwise XOR operation, returning the result.