The BigInteger type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
| Name | Description | |
|---|---|---|
| BigInteger( Byte ) |
Initializes a new instance of the BigInteger struct.
| |
| BigInteger(Decimal) |
Initializes a new instance of the BigInteger struct.
| |
| BigInteger(Double) |
Initializes a new instance of the BigInteger struct.
| |
| BigInteger(Int32) |
Initializes a new instance of the BigInteger struct.
| |
| BigInteger(Int64) |
Initializes a new instance of the BigInteger struct.
| |
| BigInteger(Single) |
Initializes a new instance of the BigInteger struct.
| |
| BigInteger(UInt32) |
Initializes a new instance of the BigInteger struct.
| |
| BigInteger(UInt64) |
Initializes a new instance of the BigInteger struct.
| |
| BigInteger(Int16, UInt32 ) |
Initializes a new instance of the BigInteger struct.
|
Methods
| Name | Description | |
|---|---|---|
| Abs |
Gets the absolute value of a System.Numerics.BigInteger object.
| |
| Add |
Adds two System.Numerics.BigInteger values and returns the result.
| |
| Compare |
Compares two System.Numerics.BigInteger values and returns an integer that
indicates whether the first value is less than, equal to, or greater than the second value.
| |
| CompareTo(Int64) |
Compares this instance to a signed 64-bit integer and returns an integer
that indicates whether the value of this instance is less than, equal to,
or greater than the value of the signed 64-bit integer.
| |
| CompareTo(Object) |
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
| |
| CompareTo(UInt64) |
Compares this instance to an unsigned 64-bit integer and returns an integer
that indicates whether the value of this instance is less than, equal to,
or greater than the value of the unsigned 64-bit integer.
| |
| CompareTo(BigInteger) |
Compares this instance to a second System.Numerics.BigInteger and returns
an integer that indicates whether the value of this instance is less than,
equal to, or greater than the value of the specified object.
| |
| Divide |
Divides one System.Numerics.BigInteger value by another and returns the result.
| |
| DivRem |
Divides one System.Numerics.BigInteger value by another, returns the result, and returns the remainder in an output parameter.
| |
| Equals(Int64) |
Returns a value that indicates whether the current instance and a signed 64-bit integer have the same value.
| |
| Equals(Object) |
Returns a value that indicates whether the current instance and a specified object have the same value.
(Overrides | |
| Equals(UInt64) |
Returns a value that indicates whether the current instance and an unsigned 64-bit integer have the same value.
| |
| Equals(BigInteger) |
Returns a value that indicates whether the current instance and a specified System.Numerics.BigInteger object have the same value.
| |
Allows an (Inherited from | ||
| GetHashCode |
Returns the hash code for the current System.Numerics.BigInteger object.
(Overrides | |
Gets the (Inherited from | ||
| GreatestCommonDivisor |
Finds the greatest common divisor of two System.Numerics.BigInteger values.
| |
| Log(BigInteger) |
Returns the natural (base e) logarithm of a specified number.
| |
| Log(BigInteger, Double) |
Returns the logarithm of a specified number in a specified base.
| |
| Log10 |
Returns the base 10 logarithm of a specified number.
| |
| Max |
Returns the larger of two System.Numerics.BigInteger values.
| |
Creates a shallow copy of the current (Inherited from | ||
| Min |
Returns the smaller of two System.Numerics.BigInteger values.
| |
| ModInverse |
Mods the inverse.
| |
| ModPow |
Performs modulus division on a number raised to the power of another number.
| |
| Multiply |
Returns the product of two System.Numerics.BigInteger values.
| |
| Negate |
Negates a specified System.Numerics.BigInteger value.
| |
| Parse(String, NumberStyles) |
Converts the string representation of a number in a specified style to its System.Numerics.BigInteger equivalent.
| |
| Parse(String, IFormatProvider) |
Converts the string representation of a number in a specified culture-specific format to its System.Numerics.BigInteger equivalent.
| |
| Parse(String, NumberStyles, IFormatProvider) |
Converts the string representation of a number in a specified style and culture-specific format to its BigInteger equivalent.
| |
| PositiveMod |
Returns positive remainder that results from division with two specified BigInteger values.
| |
| Pow |
Raises a System.Numerics.BigInteger value to the power of a specified value.
| |
| Random |
Generates random BigInteger number
| |
| Remainder |
Performs integer division on two System.Numerics.BigInteger values and returns the remainder.
| |
| Subtract |
Subtracts one System.Numerics.BigInteger value from another and returns the result.
| |
| ToByteArray |
Converts a System.Numerics.BigInteger value to a byte array.
| |
| ToString |
Converts the numeric value of the current System.Numerics.BigInteger object to its equivalent string representation.
(Overrides | |
| ToString(IFormatProvider) |
Converts the numeric value of the current System.Numerics.BigInteger object
to its equivalent string representation by using the specified culture-specific
formatting information.
| |
| ToString(String) |
Converts the numeric value of the current System.Numerics.BigInteger object
to its equivalent string representation by using the specified format.
| |
| ToString(String, IFormatProvider) |
Converts the numeric value of the current System.Numerics.BigInteger object
to its equivalent string representation by using the specified format and
culture-specific format information.
| |
| TryParse(String, BigInteger ) |
Tries to convert the string representation of a number to its System.Numerics.BigInteger
equivalent, and returns a value that indicates whether the conversion succeeded.
| |
| TryParse(String, NumberStyles, CultureInfo, BigInteger ) |
Tries to convert the string representation of a number in a specified style
and culture-specific format to its System.Numerics.BigInteger equivalent,
and returns a value that indicates whether the conversion succeeded.
|
Operators
| Name | Description | |
|---|---|---|
| Addition |
Adds the values of two specified BigInteger objects.
| |
| BitwiseAnd |
Performs a bitwise And operation on two BigInteger values.
| |
| BitwiseOr |
Performs a bitwise Or operation on two BigInteger values.
| |
| Decrement |
Decrements a BigInteger value by 1.
| |
| Division |
Divides a specified BigInteger value by another specified BigInteger value by using integer division.
| |
| Equality(Int64, BigInteger) |
Returns a value that indicates whether a signed long integer value and a System.Numerics.BigInteger value are equal.
| |
| Equality(UInt64, BigInteger) |
Returns a value that indicates whether an unsigned long integer value and a System.Numerics.BigInteger value are equal.
| |
| Equality(BigInteger, BigInteger) |
Returns a value that indicates whether the values of two System.Numerics.BigInteger objects are equal.
| |
| Equality(BigInteger, Int64) |
Returns a value that indicates whether a System.Numerics.BigInteger value and a signed long integer value are equal.
| |
| Equality(BigInteger, UInt64) |
Returns a value that indicates whether a System.Numerics.BigInteger value and an unsigned long integer value are equal.
| |
| ExclusiveOr |
Performs a bitwise exclusive Or (XOr) operation on two BigInteger values.
| |
| (Decimal to BigInteger) |
Defines an explicit conversion of a | |
| (Double to BigInteger) |
Defines an explicit conversion of a | |
| (Single to BigInteger) |
Defines an explicit conversion of a | |
| (BigInteger to Single) |
Defines an explicit conversion of a System.Numerics.BigInteger object to a single-precision floating-point value.
| |
| (BigInteger to UInt64) |
Defines an explicit conversion of a System.Numerics.BigInteger object to an unsigned 64-bit integer value.
| |
| (BigInteger to Int32) |
Defines an explicit conversion of a System.Numerics.BigInteger object to a 32-bit signed integer value.
| |
| (BigInteger to UInt32) |
Defines an explicit conversion of a System.Numerics.BigInteger object to an unsigned 32-bit integer value.
| |
| (BigInteger to Int16) |
Defines an explicit conversion of a System.Numerics.BigInteger object to a 16-bit signed integer value.
| |
| (BigInteger to Double) |
Defines an explicit conversion of a System.Numerics.BigInteger object to a | |
| (BigInteger to Byte) |
Defines an explicit conversion of a System.Numerics.BigInteger object to an unsigned byte value.
| |
| (BigInteger to Int64) |
Defines an explicit conversion of a System.Numerics.BigInteger object to a 64-bit signed integer value.
| |
| (BigInteger to UInt16) |
Defines an explicit conversion of a System.Numerics.BigInteger object to an unsigned 16-bit integer value.
| |
| (BigInteger to Decimal) |
Defines an explicit conversion of a System.Numerics.BigInteger object to a | |
| (BigInteger to SByte) |
Defines an explicit conversion of a System.Numerics.BigInteger object to a signed 8-bit value.
| |
| GreaterThan(Int64, BigInteger) |
Returns a value that indicates whether a 64-bit signed integer is greater than a System.Numerics.BigInteger value.
| |
| GreaterThan(UInt64, BigInteger) |
Returns a value that indicates whether a System.Numerics.BigInteger value is greater than a 64-bit unsigned integer.
| |
| GreaterThan(BigInteger, BigInteger) |
Returns a value that indicates whether a System.Numerics.BigInteger value is greater than another System.Numerics.BigInteger value.
| |
| GreaterThan(BigInteger, Int64) |
Returns a value that indicates whether a System.Numerics.BigInteger is greater than a 64-bit signed integer value.
| |
| GreaterThan(BigInteger, UInt64) |
Returns a value that indicates whether a System.Numerics.BigInteger value is greater than a 64-bit unsigned integer.
| |
| GreaterThanOrEqual(Int64, BigInteger) |
Returns a value that indicates whether a 64-bit signed integer is greater than or equal to a System.Numerics.BigInteger value.
| |
| GreaterThanOrEqual(UInt64, BigInteger) |
Returns a value that indicates whether a 64-bit unsigned integer is greater than or equal to a System.Numerics.BigInteger value.
| |
| GreaterThanOrEqual(BigInteger, BigInteger) |
Returns a value that indicates whether a System.Numerics.BigInteger value is greater than or equal to another System.Numerics.BigInteger value.
| |
| GreaterThanOrEqual(BigInteger, Int64) |
Returns a value that indicates whether a System.Numerics.BigInteger value is greater than or equal to a 64-bit signed integer value.
| |
| GreaterThanOrEqual(BigInteger, UInt64) |
Returns a value that indicates whether a System.Numerics.BigInteger value is greater than or equal to a 64-bit unsigned integer value.
| |
| (Byte to BigInteger) |
Defines an implicit conversion of an unsigned byte to a System.Numerics.BigInteger value.
| |
| (Int16 to BigInteger) |
Defines an implicit conversion of a signed 16-bit integer to a System.Numerics.BigInteger value.
| |
| (Int32 to BigInteger) |
Defines an implicit conversion of a signed 32-bit integer to a System.Numerics.BigInteger value.
| |
| (Int64 to BigInteger) |
Defines an implicit conversion of a signed 64-bit integer to a System.Numerics.BigInteger value.
| |
| (SByte to BigInteger) |
Defines an implicit conversion of an 8-bit signed integer to a System.Numerics.BigInteger value.
| |
| (UInt16 to BigInteger) |
Defines an implicit conversion of a 16-bit unsigned integer to a System.Numerics.BigInteger value.
| |
| (UInt32 to BigInteger) |
Defines an implicit conversion of a 32-bit unsigned integer to a System.Numerics.BigInteger value.
| |
| (UInt64 to BigInteger) |
Defines an implicit conversion of a 64-bit unsigned integer to a System.Numerics.BigInteger value.
| |
| Increment |
Increments a BigInteger value by 1.
| |
| Inequality(Int64, BigInteger) |
Returns a value that indicates whether a 64-bit signed integer and a BigInteger value are not equal.
| |
| Inequality(UInt64, BigInteger) |
Returns a value that indicates whether a 64-bit unsigned integer and a BigInteger value are not equal.
| |
| Inequality(BigInteger, BigInteger) |
Returns a value that indicates whether two BigInteger objects have different values.
| |
| Inequality(BigInteger, Int64) |
Returns a value that indicates whether a BigInteger value and a 64-bit signed integer are not equal.
| |
| Inequality(BigInteger, UInt64) |
Returns a value that indicates whether a BigInteger value and a 64-bit unsigned integer are not equal.
| |
| LeftShift |
Shifts a BigInteger value a specified number of bits to the left.
| |
| LessThan(Int64, BigInteger) |
Returns a value that indicates whether a 64-bit signed integer is less than a BigInteger value.
| |
| LessThan(UInt64, BigInteger) |
Returns a value that indicates whether a 64-bit unsigned integer is less than a BigInteger value.
| |
| LessThan(BigInteger, BigInteger) |
Returns a value that indicates whether a BigInteger value is less than another BigInteger value.
| |
| LessThan(BigInteger, Int64) |
Returns a value that indicates whether a BigInteger value is less than a 64-bit signed integer.
| |
| LessThan(BigInteger, UInt64) |
Returns a value that indicates whether a BigInteger value is less than a 64-bit unsigned integer.
| |
| LessThanOrEqual(Int64, BigInteger) |
Returns a value that indicates whether a 64-bit signed integer is less than or equal to a System.Numerics.BigInteger value.
| |
| LessThanOrEqual(UInt64, BigInteger) |
Returns a value that indicates whether a 64-bit unsigned integer is less than or equal to a System.Numerics.BigInteger value.
| |
| LessThanOrEqual(BigInteger, BigInteger) |
Returns a value that indicates whether a System.Numerics.BigInteger value is less than or equal to another System.Numerics.BigInteger value.
| |
| LessThanOrEqual(BigInteger, Int64) |
Returns a value that indicates whether a System.Numerics.BigInteger value is less than or equal to a 64-bit signed integer.
| |
| LessThanOrEqual(BigInteger, UInt64) |
Returns a value that indicates whether a System.Numerics.BigInteger value is less than or equal to a 64-bit unsigned integer.
| |
| Modulus |
Returns the remainder that results from division with two specified BigInteger values.
| |
| Multiply |
Multiplies two specified BigInteger values.
| |
| OnesComplement |
Returns the bitwise one's complement of a BigInteger value.
| |
| RightShift |
Shifts a System.Numerics.BigInteger value a specified number of bits to the right.
| |
| Subtraction |
Subtracts a BigInteger value from another BigInteger value.
| |
| UnaryNegation |
Negates a specified BigInteger value.
| |
| UnaryPlus |
Returns the value of the BigInteger operand. (The sign of the operand is unchanged.)
|
Properties
| Name | Description | |
|---|---|---|
| BitLength |
Gets number of bits used by the number.
| |
| IsEven |
Indicates whether the value of the current System.Numerics.BigInteger object is an even number.
| |
| IsOne |
Indicates whether the value of the current System.Numerics.BigInteger object is System.Numerics.BigInteger.One.
| |
| IsPowerOfTwo |
Indicates whether the value of the current System.Numerics.BigInteger object is a power of two.
| |
| IsZero |
Indicates whether the value of the current System.Numerics.BigInteger object is System.Numerics.BigInteger.Zero.
| |
| MinusOne |
Gets a value that represents the number negative one (-1).
| |
| One |
Gets a value that represents the number one (1).
| |
| Sign |
Gets a number that indicates the sign (negative, positive, or zero) of the current System.Numerics.BigInteger object.
| |
| Zero |
Gets a value that represents the number 0 (zero).
|
See Also