Big Integer Methods
Methods
Abs | Returns the absolute value of a number. |
Add | Returns the sum of two BigInteger numbers. |
Binomial | Enumerates over the binomial coefficients of a specified degree. |
Clamp | Clamps a value to an inclusive minimum and maximum value. |
Compare | Compares two numbers. |
Compare | Compares a number to another number. |
Compare | Compares a number to another number. |
Compare | Compares a number to another number. |
Copy | Copies the sign of a value to the sign of another value. |
Divide | Divides one BigInteger by another and returns the result. |
Div | Computes the quotient and remainder of two values. |
Div | Computes the quotient and remainder of two BigInteger numbers. |
Equals( | Tests whether a number equals another number. |
Equals( | Tests whether a number equals another number. |
Equals( |
Returns whether this instance is equal to a specified object.
(Overrides ValueType.Equals(Object)) |
Extended | Returns the greatest common divisor (GCD) of two BigInteger numbers. |
Factorial | Gets the factorial of a number. |
Factorial2 | Gets the double factorial of a number. |
Get |
Returns the hash code for this instance.
(Overrides ValueType.GetHashCode()) |
Get | Gets the Type of the current instance. (Inherited from Object) |
Greatest | Returns the greatest common divisor (GCD) of two BigInteger numbers. |
IsBit | |
IsNegative | Determines if a value represents a negative real number. |
IsPositive | Determines if a value represents zero or a positive real number. |
IsPseudo | Uses the Rabin-Miller test to determine if a number is pseudo-prime. |
Least | Returns the least common multiple (LCM) of two BigInteger numbers. |
Left | Shifts the bits to the left, padding the right with zeros. |
Log2 | Computes the log2 of a value. |
Max | Returns the largest of two numbers. |
Max | Compares two values to compute which has the greater magnitude. |
Min | Returns the smallest of two numbers. |
Min | Compares two values to compute which has the lesser magnitude. |
Mod | Returns the remainder after dividing one BigInteger by another and returns the result. |
Modular | Computes the modular inverse of an integer with respect to the specified modulus. |
Modular | Raises a number to a power modulo another number. |
Modular | Raises a number to a power modulo another number. |
Modulus | Returns the remainder after dividing one BigInteger by another and returns the result. |
Multiply( | Returns the product of two BigInteger numbers. |
Multiply( | Returns the product of a BigInteger number and an integer. |
Multiply( | Returns the product of a BigInteger number and an unsigned integer. |
Multiply( | Returns the product of an integer and a BigInteger number. |
Multiply( | Returns the product of an unsigned integer and a BigInteger number. |
Negate | Returns a BigInteger with the opposite sign. |
Parse( | Converts the string representation of a number to its BigInteger equivalent. |
Parse( | Parses a span of characters into a value. |
Parse( | Converts the string representation of a number in a specified style to its BigInteger equivalent. |
Parse( | Converts the string representation of a number in a specified culture-specific format to its BigInteger equivalent. |
Parse( | Parses a span of characters into a value. |
Parse( | Converts the string representation of a number in a specified style and culture-specific format to its BigInteger equivalent. |
Pow( | Raises a number to the specified power and returns the result as a BigInteger number. |
Pow( | Raises a number to the specified power and returns the result as a BigInteger number. |
Random | Returns a random BigInteger number with the specified number of bits. |
Right | Shifts the bits to the right, discarding bits on the right. |
Right | Shifts the bits to the right with rounding. |
Sqrt | Computes the integer square root of a number. |
Square | Returns the square of a BigInteger number. |
Subtract | Returns the difference between two BigInteger numbers. |
ToByte | Converts a BigInteger value to a byte array. |
ToString() |
Returns a string representation of the number.
(Overrides ValueType.ToString()) |
ToString( | Formats the value of the current instance using the specified format. |
ToString( | Formats the value of the current instance using the specified format. |
Try | Tries to format the value of the current instance into the provided span of characters. |
Try | Converts the string representation of a number to its BigInteger equivalent. A return value indicates whether the conversion succeeded or failed. |
Try | Tries to parse a span of characters into a value. |
Try | Tries to parse a string into a value. |
Try | Tries to parse a span of characters into a value. |
Try | Converts the string representation of a number in a specified style and culture-specific format to its BigInteger equivalent. A return value indicates whether the conversion succeeded or failed. |
Xor | Computes the bitwise exclusive or of two BigInteger values. |