BigInteger Struct

Definition

Represents an arbitrarily large signed integer.

public value class BigInteger : IComparable, IComparable<System::Numerics::BigInteger>, IEquatable<System::Numerics::BigInteger>, IFormattable
public value class BigInteger : IComparable, IComparable<System::Numerics::BigInteger>, IEquatable<System::Numerics::BigInteger>, ISpanFormattable
public value class BigInteger : IComparable<System::Numerics::BigInteger>, IEquatable<System::Numerics::BigInteger>, IParsable<System::Numerics::BigInteger>, ISpanParsable<System::Numerics::BigInteger>, System::Numerics::IAdditionOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, System::Numerics::BigInteger>, System::Numerics::IAdditiveIdentity<System::Numerics::BigInteger, System::Numerics::BigInteger>, System::Numerics::IBinaryInteger<System::Numerics::BigInteger>, System::Numerics::IBinaryNumber<System::Numerics::BigInteger>, System::Numerics::IBitwiseOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, System::Numerics::BigInteger>, System::Numerics::IComparisonOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, bool>, System::Numerics::IDecrementOperators<System::Numerics::BigInteger>, System::Numerics::IDivisionOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, System::Numerics::BigInteger>, System::Numerics::IEqualityOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, bool>, System::Numerics::IIncrementOperators<System::Numerics::BigInteger>, System::Numerics::IModulusOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, System::Numerics::BigInteger>, System::Numerics::IMultiplicativeIdentity<System::Numerics::BigInteger, System::Numerics::BigInteger>, System::Numerics::IMultiplyOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, System::Numerics::BigInteger>, System::Numerics::INumber<System::Numerics::BigInteger>, System::Numerics::INumberBase<System::Numerics::BigInteger>, System::Numerics::IShiftOperators<System::Numerics::BigInteger, int, System::Numerics::BigInteger>, System::Numerics::ISignedNumber<System::Numerics::BigInteger>, System::Numerics::ISubtractionOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, System::Numerics::BigInteger>, System::Numerics::IUnaryNegationOperators<System::Numerics::BigInteger, System::Numerics::BigInteger>, System::Numerics::IUnaryPlusOperators<System::Numerics::BigInteger, System::Numerics::BigInteger>
public value class BigInteger : IComparable<System::Numerics::BigInteger>, IEquatable<System::Numerics::BigInteger>, IParsable<System::Numerics::BigInteger>, ISpanParsable<System::Numerics::BigInteger>, IUtf8SpanParsable<System::Numerics::BigInteger>, System::Numerics::IAdditionOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, System::Numerics::BigInteger>, System::Numerics::IAdditiveIdentity<System::Numerics::BigInteger, System::Numerics::BigInteger>, System::Numerics::IBinaryInteger<System::Numerics::BigInteger>, System::Numerics::IBinaryNumber<System::Numerics::BigInteger>, System::Numerics::IBitwiseOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, System::Numerics::BigInteger>, System::Numerics::IComparisonOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, bool>, System::Numerics::IDecrementOperators<System::Numerics::BigInteger>, System::Numerics::IDivisionOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, System::Numerics::BigInteger>, System::Numerics::IEqualityOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, bool>, System::Numerics::IIncrementOperators<System::Numerics::BigInteger>, System::Numerics::IModulusOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, System::Numerics::BigInteger>, System::Numerics::IMultiplicativeIdentity<System::Numerics::BigInteger, System::Numerics::BigInteger>, System::Numerics::IMultiplyOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, System::Numerics::BigInteger>, System::Numerics::INumber<System::Numerics::BigInteger>, System::Numerics::INumberBase<System::Numerics::BigInteger>, System::Numerics::IShiftOperators<System::Numerics::BigInteger, int, System::Numerics::BigInteger>, System::Numerics::ISignedNumber<System::Numerics::BigInteger>, System::Numerics::ISubtractionOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, System::Numerics::BigInteger>, System::Numerics::IUnaryNegationOperators<System::Numerics::BigInteger, System::Numerics::BigInteger>, System::Numerics::IUnaryPlusOperators<System::Numerics::BigInteger, System::Numerics::BigInteger>
public struct BigInteger : IComparable, IComparable<System.Numerics.BigInteger>, IEquatable<System.Numerics.BigInteger>, IFormattable
public readonly struct BigInteger : IComparable, IComparable<System.Numerics.BigInteger>, IEquatable<System.Numerics.BigInteger>, IFormattable
public readonly struct BigInteger : IComparable, IComparable<System.Numerics.BigInteger>, IEquatable<System.Numerics.BigInteger>, ISpanFormattable
public readonly struct BigInteger : IComparable<System.Numerics.BigInteger>, IEquatable<System.Numerics.BigInteger>, IParsable<System.Numerics.BigInteger>, ISpanParsable<System.Numerics.BigInteger>, System.Numerics.IAdditionOperators<System.Numerics.BigInteger,System.Numerics.BigInteger,System.Numerics.BigInteger>, System.Numerics.IAdditiveIdentity<System.Numerics.BigInteger,System.Numerics.BigInteger>, System.Numerics.IBinaryInteger<System.Numerics.BigInteger>, System.Numerics.IBinaryNumber<System.Numerics.BigInteger>, System.Numerics.IBitwiseOperators<System.Numerics.BigInteger,System.Numerics.BigInteger,System.Numerics.BigInteger>, System.Numerics.IComparisonOperators<System.Numerics.BigInteger,System.Numerics.BigInteger,bool>, System.Numerics.IDecrementOperators<System.Numerics.BigInteger>, System.Numerics.IDivisionOperators<System.Numerics.BigInteger,System.Numerics.BigInteger,System.Numerics.BigInteger>, System.Numerics.IEqualityOperators<System.Numerics.BigInteger,System.Numerics.BigInteger,bool>, System.Numerics.IIncrementOperators<System.Numerics.BigInteger>, System.Numerics.IModulusOperators<System.Numerics.BigInteger,System.Numerics.BigInteger,System.Numerics.BigInteger>, System.Numerics.IMultiplicativeIdentity<System.Numerics.BigInteger,System.Numerics.BigInteger>, System.Numerics.IMultiplyOperators<System.Numerics.BigInteger,System.Numerics.BigInteger,System.Numerics.BigInteger>, System.Numerics.INumber<System.Numerics.BigInteger>, System.Numerics.INumberBase<System.Numerics.BigInteger>, System.Numerics.IShiftOperators<System.Numerics.BigInteger,int,System.Numerics.BigInteger>, System.Numerics.ISignedNumber<System.Numerics.BigInteger>, System.Numerics.ISubtractionOperators<System.Numerics.BigInteger,System.Numerics.BigInteger,System.Numerics.BigInteger>, System.Numerics.IUnaryNegationOperators<System.Numerics.BigInteger,System.Numerics.BigInteger>, System.Numerics.IUnaryPlusOperators<System.Numerics.BigInteger,System.Numerics.BigInteger>
public readonly struct BigInteger : IComparable<System.Numerics.BigInteger>, IEquatable<System.Numerics.BigInteger>, IParsable<System.Numerics.BigInteger>, ISpanParsable<System.Numerics.BigInteger>, IUtf8SpanParsable<System.Numerics.BigInteger>, System.Numerics.IAdditionOperators<System.Numerics.BigInteger,System.Numerics.BigInteger,System.Numerics.BigInteger>, System.Numerics.IAdditiveIdentity<System.Numerics.BigInteger,System.Numerics.BigInteger>, System.Numerics.IBinaryInteger<System.Numerics.BigInteger>, System.Numerics.IBinaryNumber<System.Numerics.BigInteger>, System.Numerics.IBitwiseOperators<System.Numerics.BigInteger,System.Numerics.BigInteger,System.Numerics.BigInteger>, System.Numerics.IComparisonOperators<System.Numerics.BigInteger,System.Numerics.BigInteger,bool>, System.Numerics.IDecrementOperators<System.Numerics.BigInteger>, System.Numerics.IDivisionOperators<System.Numerics.BigInteger,System.Numerics.BigInteger,System.Numerics.BigInteger>, System.Numerics.IEqualityOperators<System.Numerics.BigInteger,System.Numerics.BigInteger,bool>, System.Numerics.IIncrementOperators<System.Numerics.BigInteger>, System.Numerics.IModulusOperators<System.Numerics.BigInteger,System.Numerics.BigInteger,System.Numerics.BigInteger>, System.Numerics.IMultiplicativeIdentity<System.Numerics.BigInteger,System.Numerics.BigInteger>, System.Numerics.IMultiplyOperators<System.Numerics.BigInteger,System.Numerics.BigInteger,System.Numerics.BigInteger>, System.Numerics.INumber<System.Numerics.BigInteger>, System.Numerics.INumberBase<System.Numerics.BigInteger>, System.Numerics.IShiftOperators<System.Numerics.BigInteger,int,System.Numerics.BigInteger>, System.Numerics.ISignedNumber<System.Numerics.BigInteger>, System.Numerics.ISubtractionOperators<System.Numerics.BigInteger,System.Numerics.BigInteger,System.Numerics.BigInteger>, System.Numerics.IUnaryNegationOperators<System.Numerics.BigInteger,System.Numerics.BigInteger>, System.Numerics.IUnaryPlusOperators<System.Numerics.BigInteger,System.Numerics.BigInteger>
[System.Serializable]
public struct BigInteger : IComparable, IComparable<System.Numerics.BigInteger>, IEquatable<System.Numerics.BigInteger>, IFormattable
type BigInteger = struct
    interface IFormattable
type BigInteger = struct
    interface ISpanFormattable
    interface IFormattable
type BigInteger = struct
    interface IFormattable
    interface IParsable<BigInteger>
    interface ISpanFormattable
    interface ISpanParsable<BigInteger>
    interface IAdditionOperators<BigInteger, BigInteger, BigInteger>
    interface IAdditiveIdentity<BigInteger, BigInteger>
    interface IBinaryInteger<BigInteger>
    interface IBinaryNumber<BigInteger>
    interface IBitwiseOperators<BigInteger, BigInteger, BigInteger>
    interface IComparisonOperators<BigInteger, BigInteger, bool>
    interface IEqualityOperators<BigInteger, BigInteger, bool>
    interface IDecrementOperators<BigInteger>
    interface IDivisionOperators<BigInteger, BigInteger, BigInteger>
    interface IIncrementOperators<BigInteger>
    interface IModulusOperators<BigInteger, BigInteger, BigInteger>
    interface IMultiplicativeIdentity<BigInteger, BigInteger>
    interface IMultiplyOperators<BigInteger, BigInteger, BigInteger>
    interface INumber<BigInteger>
    interface INumberBase<BigInteger>
    interface ISubtractionOperators<BigInteger, BigInteger, BigInteger>
    interface IUnaryNegationOperators<BigInteger, BigInteger>
    interface IUnaryPlusOperators<BigInteger, BigInteger>
    interface IShiftOperators<BigInteger, int, BigInteger>
    interface ISignedNumber<BigInteger>
type BigInteger = struct
    interface IFormattable
    interface IParsable<BigInteger>
    interface ISpanFormattable
    interface ISpanParsable<BigInteger>
    interface IAdditionOperators<BigInteger, BigInteger, BigInteger>
    interface IAdditiveIdentity<BigInteger, BigInteger>
    interface IBinaryInteger<BigInteger>
    interface IBinaryNumber<BigInteger>
    interface IBitwiseOperators<BigInteger, BigInteger, BigInteger>
    interface IComparisonOperators<BigInteger, BigInteger, bool>
    interface IEqualityOperators<BigInteger, BigInteger, bool>
    interface IDecrementOperators<BigInteger>
    interface IDivisionOperators<BigInteger, BigInteger, BigInteger>
    interface IIncrementOperators<BigInteger>
    interface IModulusOperators<BigInteger, BigInteger, BigInteger>
    interface IMultiplicativeIdentity<BigInteger, BigInteger>
    interface IMultiplyOperators<BigInteger, BigInteger, BigInteger>
    interface INumber<BigInteger>
    interface INumberBase<BigInteger>
    interface ISubtractionOperators<BigInteger, BigInteger, BigInteger>
    interface IUnaryNegationOperators<BigInteger, BigInteger>
    interface IUnaryPlusOperators<BigInteger, BigInteger>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<BigInteger>
    interface IShiftOperators<BigInteger, int, BigInteger>
    interface ISignedNumber<BigInteger>
[<System.Serializable>]
type BigInteger = struct
    interface IFormattable
Public Structure BigInteger
Implements IComparable, IComparable(Of BigInteger), IEquatable(Of BigInteger), IFormattable
Public Structure BigInteger
Implements IComparable, IComparable(Of BigInteger), IEquatable(Of BigInteger), ISpanFormattable
Public Structure BigInteger
Implements IAdditionOperators(Of BigInteger, BigInteger, BigInteger), IAdditiveIdentity(Of BigInteger, BigInteger), IBinaryInteger(Of BigInteger), IBinaryNumber(Of BigInteger), IBitwiseOperators(Of BigInteger, BigInteger, BigInteger), IComparable(Of BigInteger), IComparisonOperators(Of BigInteger, BigInteger, Boolean), IDecrementOperators(Of BigInteger), IDivisionOperators(Of BigInteger, BigInteger, BigInteger), IEqualityOperators(Of BigInteger, BigInteger, Boolean), IEquatable(Of BigInteger), IIncrementOperators(Of BigInteger), IModulusOperators(Of BigInteger, BigInteger, BigInteger), IMultiplicativeIdentity(Of BigInteger, BigInteger), IMultiplyOperators(Of BigInteger, BigInteger, BigInteger), INumber(Of BigInteger), INumberBase(Of BigInteger), IParsable(Of BigInteger), IShiftOperators(Of BigInteger, Integer, BigInteger), ISignedNumber(Of BigInteger), ISpanParsable(Of BigInteger), ISubtractionOperators(Of BigInteger, BigInteger, BigInteger), IUnaryNegationOperators(Of BigInteger, BigInteger), IUnaryPlusOperators(Of BigInteger, BigInteger)
Public Structure BigInteger
Implements IAdditionOperators(Of BigInteger, BigInteger, BigInteger), IAdditiveIdentity(Of BigInteger, BigInteger), IBinaryInteger(Of BigInteger), IBinaryNumber(Of BigInteger), IBitwiseOperators(Of BigInteger, BigInteger, BigInteger), IComparable(Of BigInteger), IComparisonOperators(Of BigInteger, BigInteger, Boolean), IDecrementOperators(Of BigInteger), IDivisionOperators(Of BigInteger, BigInteger, BigInteger), IEqualityOperators(Of BigInteger, BigInteger, Boolean), IEquatable(Of BigInteger), IIncrementOperators(Of BigInteger), IModulusOperators(Of BigInteger, BigInteger, BigInteger), IMultiplicativeIdentity(Of BigInteger, BigInteger), IMultiplyOperators(Of BigInteger, BigInteger, BigInteger), INumber(Of BigInteger), INumberBase(Of BigInteger), IParsable(Of BigInteger), IShiftOperators(Of BigInteger, Integer, BigInteger), ISignedNumber(Of BigInteger), ISpanParsable(Of BigInteger), ISubtractionOperators(Of BigInteger, BigInteger, BigInteger), IUnaryNegationOperators(Of BigInteger, BigInteger), IUnaryPlusOperators(Of BigInteger, BigInteger), IUtf8SpanParsable(Of BigInteger)
Inheritance
BigInteger
Attributes
Implements
IComparable IComparable<BigInteger> IEquatable<BigInteger> IFormattable ISpanFormattable IComparable<TSelf> IEquatable<TSelf> IParsable<BigInteger> IParsable<TSelf> ISpanParsable<BigInteger> ISpanParsable<TSelf> IAdditionOperators<BigInteger,BigInteger,BigInteger> IAdditionOperators<TSelf,TSelf,TSelf> IAdditiveIdentity<BigInteger,BigInteger> IAdditiveIdentity<TSelf,TSelf> IBinaryInteger<BigInteger> IBinaryNumber<BigInteger> IBinaryNumber<TSelf> IBitwiseOperators<BigInteger,BigInteger,BigInteger> IBitwiseOperators<TSelf,TSelf,TSelf> IComparisonOperators<BigInteger,BigInteger,Boolean> IComparisonOperators<TSelf,TSelf,Boolean> IDecrementOperators<BigInteger> IDecrementOperators<TSelf> IDivisionOperators<BigInteger,BigInteger,BigInteger> IDivisionOperators<TSelf,TSelf,TSelf> IEqualityOperators<BigInteger,BigInteger,Boolean> IEqualityOperators<TSelf,TOther,TResult> IEqualityOperators<TSelf,TSelf,Boolean> IIncrementOperators<BigInteger> IIncrementOperators<TSelf> IModulusOperators<BigInteger,BigInteger,BigInteger> IModulusOperators<TSelf,TSelf,TSelf> IMultiplicativeIdentity<BigInteger,BigInteger> IMultiplicativeIdentity<TSelf,TSelf> IMultiplyOperators<BigInteger,BigInteger,BigInteger> IMultiplyOperators<TSelf,TSelf,TSelf> INumber<BigInteger> INumber<TSelf> INumberBase<BigInteger> INumberBase<TSelf> IShiftOperators<BigInteger,Int32,BigInteger> IShiftOperators<TSelf,Int32,TSelf> ISignedNumber<BigInteger> ISubtractionOperators<BigInteger,BigInteger,BigInteger> ISubtractionOperators<TSelf,TSelf,TSelf> IUnaryNegationOperators<BigInteger,BigInteger> IUnaryNegationOperators<TSelf,TSelf> IUnaryPlusOperators<BigInteger,BigInteger> IUnaryPlusOperators<TSelf,TSelf> IUtf8SpanFormattable IUtf8SpanParsable<BigInteger> IUtf8SpanParsable<TSelf>

Remarks

For more information about this API, see Supplemental API remarks for BigInteger.

Constructors

BigInteger(Byte[])

Initializes a new instance of the BigInteger structure using the values in a byte array.

BigInteger(Decimal)

Initializes a new instance of the BigInteger structure using a Decimal value.

BigInteger(Double)

Initializes a new instance of the BigInteger structure using a double-precision floating-point value.

BigInteger(Int32)

Initializes a new instance of the BigInteger structure using a 32-bit signed integer value.

BigInteger(Int64)

Initializes a new instance of the BigInteger structure using a 64-bit signed integer value.

BigInteger(ReadOnlySpan<Byte>, Boolean, Boolean)

Initializes a new instance of the BigInteger structure using the values in a read-only span of bytes, and optionally indicating the signing encoding and the endianness byte order.

BigInteger(Single)

Initializes a new instance of the BigInteger structure using a single-precision floating-point value.

BigInteger(UInt32)

Initializes a new instance of the BigInteger structure using an unsigned 32-bit integer value.

BigInteger(UInt64)

Initializes a new instance of the BigInteger structure with an unsigned 64-bit integer value.

Properties

IsEven

Indicates whether the value of the current BigInteger object is an even number.

IsOne

Indicates whether the value of the current BigInteger object is One.

IsPowerOfTwo

Indicates whether the value of the current BigInteger object is a power of two.

IsZero

Indicates whether the value of the current BigInteger object is 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 BigInteger object.

Zero

Gets a value that represents the number 0 (zero).

Methods

Abs(BigInteger)

Gets the absolute value of a BigInteger object.

Add(BigInteger, BigInteger)

Adds two BigInteger values and returns the result.

Clamp(BigInteger, BigInteger, BigInteger)

Clamps a value to an inclusive minimum and maximum value.

Compare(BigInteger, BigInteger)

Compares two BigInteger values and returns an integer that indicates whether the first value is less than, equal to, or greater than the second value.

CompareTo(BigInteger)

Compares this instance to a second 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.

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 this instance to a specified object 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.

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.

CopySign(BigInteger, BigInteger)

Copies the sign of a value to the sign of another value.

CreateChecked<TOther>(TOther)

Creates an instance of the current type from a value, throwing an overflow exception for any values that fall outside the representable range of the current type.

CreateSaturating<TOther>(TOther)

Creates an instance of the current type from a value, saturating any values that fall outside the representable range of the current type.

CreateTruncating<TOther>(TOther)

Creates an instance of the current type from a value, truncating any values that fall outside the representable range of the current type.

Divide(BigInteger, BigInteger)

Divides one BigInteger value by another and returns the result.

DivRem(BigInteger, BigInteger)

Computes the quotient and remainder of two values.

DivRem(BigInteger, BigInteger, BigInteger)

Divides one BigInteger value by another, returns the result, and returns the remainder in an output parameter.

Equals(BigInteger)

Returns a value that indicates whether the current instance and a specified BigInteger object have the same value.

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.

Equals(UInt64)

Returns a value that indicates whether the current instance and an unsigned 64-bit integer have the same value.

GetBitLength()

Gets the number of bits required for shortest two's complement representation of the current instance without the sign bit.

GetByteCount(Boolean)

Gets the number of bytes that will be output by ToByteArray(Boolean, Boolean) and TryWriteBytes(Span<Byte>, Int32, Boolean, Boolean).

GetHashCode()

Returns the hash code for the current BigInteger object.

GreatestCommonDivisor(BigInteger, BigInteger)

Finds the greatest common divisor of two BigInteger values.

IsEvenInteger(BigInteger)

Determines if a value represents an even integral number.

IsNegative(BigInteger)

Determines if a value is negative.

IsOddInteger(BigInteger)

Determines if a value represents an odd integral number.

IsPositive(BigInteger)

Determines if a value is positive.

IsPow2(BigInteger)

Determines if a value is a power of two.

LeadingZeroCount(BigInteger)

Computes the number of leading zeros in a value.

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(BigInteger)

Returns the base 10 logarithm of a specified number.

Log2(BigInteger)

Computes the log2 of a value.

Max(BigInteger, BigInteger)

Returns the larger of two BigInteger values.

MaxMagnitude(BigInteger, BigInteger)

Compares two values to compute which is greater.

Min(BigInteger, BigInteger)

Returns the smaller of two BigInteger values.

MinMagnitude(BigInteger, BigInteger)

Compares two values to compute which is lesser.

ModPow(BigInteger, BigInteger, BigInteger)

Performs modulus division on a number raised to the power of another number.

Multiply(BigInteger, BigInteger)

Returns the product of two BigInteger values.

Negate(BigInteger)

Negates a specified BigInteger value.

Parse(ReadOnlySpan<Char>, IFormatProvider)

Parses a span of characters into a value.

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

Converts the representation of a number, contained in the specified read-only span of characters, in a specified style to its BigInteger equivalent.

Parse(String)

Converts the string representation of a number to its BigInteger equivalent.

Parse(String, IFormatProvider)

Converts the string representation of a number in a specified culture-specific format to its BigInteger equivalent.

Parse(String, NumberStyles)

Converts the string representation of a number in a specified style to its 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.

PopCount(BigInteger)

Computes the number of bits that are set in a value.

Pow(BigInteger, Int32)

Raises a BigInteger value to the power of a specified value.

Remainder(BigInteger, BigInteger)

Performs integer division on two BigInteger values and returns the remainder.

RotateLeft(BigInteger, Int32)

Rotates a value left by a given amount.

RotateRight(BigInteger, Int32)

Rotates a value right by a given amount.

Subtract(BigInteger, BigInteger)

Subtracts one BigInteger value from another and returns the result.

ToByteArray()

Converts a BigInteger value to a byte array.

ToByteArray(Boolean, Boolean)

Returns the value of this BigInteger as a byte array using the fewest number of bytes possible. If the value is zero, returns an array of one byte whose element is 0x00.

ToString()

Converts the numeric value of the current BigInteger object to its equivalent string representation.

ToString(IFormatProvider)

Converts the numeric value of the current BigInteger object to its equivalent string representation by using the specified culture-specific formatting information.

ToString(String)

Converts the numeric value of the current BigInteger object to its equivalent string representation by using the specified format.

ToString(String, IFormatProvider)

Converts the numeric value of the current BigInteger object to its equivalent string representation by using the specified format and culture-specific format information.

TrailingZeroCount(BigInteger)

Computes the number of trailing zeros in a value.

TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)

Formats this big integer instance into a span of characters.

TryParse(ReadOnlySpan<Char>, BigInteger)

Tries to convert the representation of a number contained in the specified read-only character span, to its BigInteger equivalent, and returns a value that indicates whether the conversion succeeded.

TryParse(ReadOnlySpan<Char>, IFormatProvider, BigInteger)

Tries to parse a span of characters into a value.

TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, BigInteger)

Tries to convert the string representation of a number to its BigInteger equivalent, and returns a value that indicates whether the conversion succeeded.

TryParse(String, BigInteger)

Tries to convert the string representation of a number to its BigInteger equivalent, and returns a value that indicates whether the conversion succeeded.

TryParse(String, IFormatProvider, BigInteger)

Tries to parse a string into a value.

TryParse(String, NumberStyles, IFormatProvider, BigInteger)

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.

TryWriteBytes(Span<Byte>, Int32, Boolean, Boolean)

Copies the value of this BigInteger as little-endian twos-complement bytes, using the fewest number of bytes possible. If the value is zero, outputs one byte whose element is 0x00.

Operators

Addition(BigInteger, BigInteger)

Adds the values of two specified BigInteger objects.

BitwiseAnd(BigInteger, BigInteger)

Performs a bitwise And operation on two BigInteger values.

BitwiseOr(BigInteger, BigInteger)

Performs a bitwise Or operation on two BigInteger values.

Decrement(BigInteger)

Decrements a BigInteger value by 1.

Division(BigInteger, BigInteger)

Divides a specified BigInteger value by another specified BigInteger value by using integer division.

Equality(BigInteger, BigInteger)

Returns a value that indicates whether the values of two BigInteger objects are equal.

Equality(BigInteger, Int64)

Returns a value that indicates whether a BigInteger value and a signed long integer value are equal.

Equality(BigInteger, UInt64)

Returns a value that indicates whether a BigInteger value and an unsigned long integer value are equal.

Equality(Int64, BigInteger)

Returns a value that indicates whether a signed long integer value and a BigInteger value are equal.

Equality(UInt64, BigInteger)

Returns a value that indicates whether an unsigned long integer value and a BigInteger value are equal.

ExclusiveOr(BigInteger, BigInteger)

Performs a bitwise exclusive Or (XOr) operation on two BigInteger values.

Explicit(BigInteger to Byte)

Defines an explicit conversion of a BigInteger object to an unsigned byte value.

Explicit(BigInteger to Char)

Explicitly converts a big integer to a Char value.

Explicit(BigInteger to Decimal)

Defines an explicit conversion of a BigInteger object to a Decimal value.

Explicit(BigInteger to Double)

Defines an explicit conversion of a BigInteger object to a Double value.

Explicit(BigInteger to Half)

Explicitly converts a big integer to a Half value.

Explicit(BigInteger to Int128)

Explicitly converts a big integer to a Int128 value.

Explicit(BigInteger to Int16)

Defines an explicit conversion of a BigInteger object to a 16-bit signed integer value.

Explicit(BigInteger to Int32)

Defines an explicit conversion of a BigInteger object to a 32-bit signed integer value.

Explicit(BigInteger to Int64)

Defines an explicit conversion of a BigInteger object to a 64-bit signed integer value.

Explicit(BigInteger to IntPtr)

Explicitly converts a big integer to a IntPtr value.

Explicit(BigInteger to SByte)

Defines an explicit conversion of a BigInteger object to a signed 8-bit value.

This API is not CLS-compliant. The compliant alternative is Int16.

Explicit(BigInteger to Single)

Defines an explicit conversion of a BigInteger object to a single-precision floating-point value.

Explicit(BigInteger to UInt128)

Explicitly converts a big integer to a UInt128 value.

Explicit(BigInteger to UInt16)

Defines an explicit conversion of a BigInteger object to an unsigned 16-bit integer value.

This API is not CLS-compliant. The compliant alternative is Int32.

Explicit(BigInteger to UInt32)

Defines an explicit conversion of a BigInteger object to an unsigned 32-bit integer value.

This API is not CLS-compliant. The compliant alternative is Int64.

Explicit(BigInteger to UInt64)

Defines an explicit conversion of a BigInteger object to an unsigned 64-bit integer value.

This API is not CLS-compliant. The compliant alternative is Double.

Explicit(BigInteger to UIntPtr)

Explicitly converts a big integer to a UIntPtr value.

Explicit(Complex to BigInteger)

Explicitly converts a Complex value to a big integer.

Explicit(Decimal to BigInteger)

Defines an explicit conversion of a Decimal object to a BigInteger value.

Explicit(Double to BigInteger)

Defines an explicit conversion of a Double value to a BigInteger value.

Explicit(Half to BigInteger)

Explicitly converts a Half value to a big integer.

Explicit(Single to BigInteger)

Defines an explicit conversion of a Single value to a BigInteger value.

GreaterThan(BigInteger, BigInteger)

Returns a value that indicates whether a BigInteger value is greater than another BigInteger value.

GreaterThan(BigInteger, Int64)

Returns a value that indicates whether a BigInteger is greater than a 64-bit signed integer value.

GreaterThan(BigInteger, UInt64)

Returns a value that indicates whether a BigInteger value is greater than a 64-bit unsigned integer.

GreaterThan(Int64, BigInteger)

Returns a value that indicates whether a 64-bit signed integer is greater than a BigInteger value.

GreaterThan(UInt64, BigInteger)

Returns a value that indicates whether a BigInteger value is greater than a 64-bit unsigned integer.

GreaterThanOrEqual(BigInteger, BigInteger)

Returns a value that indicates whether a BigInteger value is greater than or equal to another BigInteger value.

GreaterThanOrEqual(BigInteger, Int64)

Returns a value that indicates whether a BigInteger value is greater than or equal to a 64-bit signed integer value.

GreaterThanOrEqual(BigInteger, UInt64)

Returns a value that indicates whether a BigInteger value is greater than or equal to a 64-bit unsigned integer value.

GreaterThanOrEqual(Int64, BigInteger)

Returns a value that indicates whether a 64-bit signed integer is greater than or equal to a BigInteger value.

GreaterThanOrEqual(UInt64, BigInteger)

Returns a value that indicates whether a 64-bit unsigned integer is greater than or equal to a BigInteger value.

Implicit(Byte to BigInteger)

Defines an implicit conversion of an unsigned byte to a BigInteger value.

Implicit(Char to BigInteger)

Implicitly converts a Char value to a big integer.

Implicit(Int128 to BigInteger)

Implicitly converts a Int128 value to a big integer.

Implicit(Int16 to BigInteger)

Defines an implicit conversion of a signed 16-bit integer to a BigInteger value.

Implicit(Int32 to BigInteger)

Defines an implicit conversion of a signed 32-bit integer to a BigInteger value.

Implicit(Int64 to BigInteger)

Defines an implicit conversion of a signed 64-bit integer to a BigInteger value.

Implicit(IntPtr to BigInteger)

Implicitly converts a IntPtr value to a big integer.

Implicit(SByte to BigInteger)

Defines an implicit conversion of an 8-bit signed integer to a BigInteger value.

This API is not CLS-compliant. The compliant alternative is BigInteger(Int32).

Implicit(UInt128 to BigInteger)

Implicitly converts a UInt128 value to a big integer.

Implicit(UInt16 to BigInteger)

Defines an implicit conversion of a 16-bit unsigned integer to a BigInteger value.

This API is not CLS-compliant. The compliant alternative is Implicit(Int32 to BigInteger).

Implicit(UInt32 to BigInteger)

Defines an implicit conversion of a 32-bit unsigned integer to a BigInteger value.

This API is not CLS-compliant. The compliant alternative is Implicit(Int64 to BigInteger).

Implicit(UInt64 to BigInteger)

Defines an implicit conversion of a 64-bit unsigned integer to a BigInteger value.

This API is not CLS-compliant. The compliant alternative is Double.

Implicit(UIntPtr to BigInteger)

Implicitly converts a UIntPtr value to a big integer.

Increment(BigInteger)

Increments a BigInteger value by 1.

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.

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.

LeftShift(BigInteger, Int32)

Shifts a BigInteger value a specified number of bits to the left.

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.

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.

LessThanOrEqual(BigInteger, BigInteger)

Returns a value that indicates whether a BigInteger value is less than or equal to another BigInteger value.

LessThanOrEqual(BigInteger, Int64)

Returns a value that indicates whether a BigInteger value is less than or equal to a 64-bit signed integer.

LessThanOrEqual(BigInteger, UInt64)

Returns a value that indicates whether a BigInteger value is less than or equal to 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 BigInteger value.

LessThanOrEqual(UInt64, BigInteger)

Returns a value that indicates whether a 64-bit unsigned integer is less than or equal to a BigInteger value.

Modulus(BigInteger, BigInteger)

Returns the remainder that results from division with two specified BigInteger values.

Multiply(BigInteger, BigInteger)

Multiplies two specified BigInteger values.

OnesComplement(BigInteger)

Returns the bitwise one's complement of a BigInteger value.

RightShift(BigInteger, Int32)

Shifts a BigInteger value a specified number of bits to the right.

Subtraction(BigInteger, BigInteger)

Subtracts a BigInteger value from another BigInteger value.

UnaryNegation(BigInteger)

Negates a specified BigInteger value.

UnaryPlus(BigInteger)

Returns the value of the BigInteger operand. (The sign of the operand is unchanged.)

UnsignedRightShift(BigInteger, Int32)

Shifts a value right by a given amount.

Explicit Interface Implementations

IAdditiveIdentity<BigInteger,BigInteger>.AdditiveIdentity

Gets the additive identity of the current type.

IBinaryInteger<BigInteger>.GetByteCount()

Gets the number of bytes that will be written as part of TryWriteLittleEndian(Span<Byte>, Int32).

IBinaryInteger<BigInteger>.GetShortestBitLength()

Gets the length, in bits, of the shortest two's complement representation of the current value.

IBinaryInteger<BigInteger>.TryReadBigEndian(ReadOnlySpan<Byte>, Boolean, BigInteger)
IBinaryInteger<BigInteger>.TryReadLittleEndian(ReadOnlySpan<Byte>, Boolean, BigInteger)
IBinaryInteger<BigInteger>.TryWriteBigEndian(Span<Byte>, Int32)

Tries to write the current value, in big-endian format, to a given span.

IBinaryInteger<BigInteger>.TryWriteLittleEndian(Span<Byte>, Int32)

Tries to write the current value, in little-endian format, to a given span.

IBinaryNumber<BigInteger>.AllBitsSet

Gets an instance of the binary type in which all bits are set.

IComparable.CompareTo(Object)

Compares this instance to a specified object 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.

IMultiplicativeIdentity<BigInteger,BigInteger>.MultiplicativeIdentity

Gets the multiplicative identity of the current type.

INumber<BigInteger>.MaxNumber(BigInteger, BigInteger)

Compares two values to compute which is greater and returns the other value if one input is NaN.

INumber<BigInteger>.MinNumber(BigInteger, BigInteger)

Compares two values to compute which is lesser and returns the other value if one input is NaN.

INumber<BigInteger>.Sign(BigInteger)

Computes the sign of a value.

INumberBase<BigInteger>.IsCanonical(BigInteger)

Determines if a value is in its canonical representation.

INumberBase<BigInteger>.IsComplexNumber(BigInteger)

Determines if a value represents a complex number.

INumberBase<BigInteger>.IsFinite(BigInteger)

Determines if a value is finite.

INumberBase<BigInteger>.IsImaginaryNumber(BigInteger)

Determines if a value represents a pure imaginary number.

INumberBase<BigInteger>.IsInfinity(BigInteger)

Determines if a value is infinite.

INumberBase<BigInteger>.IsInteger(BigInteger)

Determines if a value represents an integral number.

INumberBase<BigInteger>.IsNaN(BigInteger)

Determines if a value is NaN.

INumberBase<BigInteger>.IsNegativeInfinity(BigInteger)

Determines if a value is negative infinity.

INumberBase<BigInteger>.IsNormal(BigInteger)

Determines if a value is normal.

INumberBase<BigInteger>.IsPositiveInfinity(BigInteger)

Determines if a value is positive infinity.

INumberBase<BigInteger>.IsRealNumber(BigInteger)

Determines if a value represents a real number.

INumberBase<BigInteger>.IsSubnormal(BigInteger)

Determines if a value is subnormal.

INumberBase<BigInteger>.IsZero(BigInteger)

Determines if a value is zero.

INumberBase<BigInteger>.MaxMagnitudeNumber(BigInteger, BigInteger)

Compares two values to compute which has the greater magnitude and returns the other value if one input is NaN.

INumberBase<BigInteger>.MinMagnitudeNumber(BigInteger, BigInteger)

Compares two values to compute which has the lesser magnitude and returns the other value if one input is NaN.

INumberBase<BigInteger>.Radix

Gets the radix, or base, for the type.

INumberBase<BigInteger>.TryConvertFromChecked<TOther>(TOther, BigInteger)
INumberBase<BigInteger>.TryConvertFromSaturating<TOther>(TOther, BigInteger)
INumberBase<BigInteger>.TryConvertFromTruncating<TOther>(TOther, BigInteger)
INumberBase<BigInteger>.TryConvertToChecked<TOther>(BigInteger, TOther)

Tries to convert an instance of the the current type to another type, throwing an overflow exception for any values that fall outside the representable range of the current type.

INumberBase<BigInteger>.TryConvertToSaturating<TOther>(BigInteger, TOther)

Tries to convert an instance of the the current type to another type, saturating any values that fall outside the representable range of the current type.

INumberBase<BigInteger>.TryConvertToTruncating<TOther>(BigInteger, TOther)

Tries to convert an instance of the the current type to another type, truncating any values that fall outside the representable range of the current type.

ISignedNumber<BigInteger>.NegativeOne

Gets the value -1 for the type.

Applies to