Export (0) Print
Expand All

BigInteger Structure

Solver Foundation 3.0

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents an arbitrarily large signed integer.

Namespace:  Microsoft.SolverFoundation.Common
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

[CLSCompliantAttribute(true)]
public struct BigInteger : IComparable, 
	IComparable<BigInteger>, IEquatable<BigInteger>, IComparable<int>, 
	IEquatable<int>, IComparable<uint>, IEquatable<uint>, IComparable<long>, 
	IEquatable<long>, IComparable<ulong>, IEquatable<ulong>, IComparable<double>, 
	IEquatable<double>

The BigInteger type exposes the following members.

  NameDescription
Public propertyAbsoluteValueGets the absolute value.
Public propertyBitCountGets the count of the number of bits in an integer.
Public propertyIsEvenGets a value indicating whether a value is exactly divisible by two.
Public propertyIsOneGets a value indicating whether a value is equal to one.
Public propertyIsPowerOfTwoGets a value indicating whether a value is a power of two (2x).
Public propertyIsZeroGets a value indicating whether a value is equal to zero.
Public propertySignGets a value that represents the sign of a value.
Top

  NameDescription
Public methodStatic memberCompareFractionsCompares integer fractions.
Public methodStatic memberCompareFractionToBigIntegerCompares a fraction with a big integer.
Public methodStatic memberCompareFractionToLongCompares a fraction to a long.
Public methodStatic memberCompareFractionToUlongCompares a fraction to an unsigned long.
Public methodCompareTo(Double)Compares a big integer to a double.
Public methodCompareTo(Int32)Compares a big integer to a 32-bit integer.
Public methodCompareTo(Int64)Compares a big integer to a long.
Public methodCompareTo(Object)Compares a big integer to a value.
Public methodCompareTo(UInt32)Compares a big integer to an unsigned integer.
Public methodCompareTo(UInt64)Compares a big integer to an unsigned long.
Public methodCompareTo(BigInteger)Compares two BigInteger values.
Public methodStatic memberDivModDivides two big integers and saves the quotient and remainder.
Public methodStatic memberDivModOneDivides two big integers.
Public methodEquals(Double)Returns a value that indicates whether a big integer is equal to a double.
Public methodEquals(Int32)Returns a value that indicates whether a big integer is equal to an integer.
Public methodEquals(Int64)Returns a value that indicates whether a big integer is equal to a long integer.
Public methodEquals(Object)Returns a value that indicates whether a big integer is equal to an object. (Overrides ValueType.Equals(Object).)
Public methodEquals(UInt32)Returns a value that indicates whether a big integer is equal to an integer.
Public methodEquals(UInt64)Returns a value that indicates whether a big integer is equal to a long integer.
Public methodEquals(BigInteger)Determines if two big integers are equal.
Public methodStatic memberFactorialComputes the factorial of a big integer.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberGcdComputes the greatest common divisor.
Public methodGetHashCodeComputes the hash of a value. (Overrides ValueType.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberNegateNegates the sign of a big integer.
Public methodStatic memberPower(BigInteger, BigInteger)Raises a big integer to the power of a big integer.
Public methodStatic memberPower(BigInteger, BigInteger, BigInteger)Raises a big integer to the power of a big integer, and stores the result.
Public methodStatic memberPower(BigInteger, BigInteger, Rational)Raises a big integer to the power of a big integer, and stores the result.
Public methodTestBitReturns a value that indicates whether a test bit is set.
Public methodToHexStringConverts the numeric value of the current big integer to its equivalent string representation of hex characters.
Public methodToStringConverts the numeric value of the current big integer to its equivalent string representation. (Overrides ValueType.ToString().)
Public methodStatic memberTryFactorialComputes the factorial of a big integer. A return value indicates whether the computation succeeded.
Top

  NameDescription
Public operatorStatic memberAdditionAdds two big integers.
Public operatorStatic memberBitwiseAndPerforms a bitwise AND operation on two big integers.
Public operatorStatic memberBitwiseOrPerforms the bitwise OR operation on two big integers.
Public operatorStatic memberDecrementSubtracts one from a big integer.
Public operatorStatic memberDivisionDivides two big integers.
Public operatorStatic memberEquality(Double, BigInteger)Returns a value that indicates whether a double is equal to a big integer.
Public operatorStatic memberEquality(Int32, BigInteger)Returns a value that indicates whether an integer is equal to a big integer.
Public operatorStatic memberEquality(Int64, BigInteger)Returns a value that indicates whether a long is equal to a big integer.
Public operatorStatic memberEquality(UInt32, BigInteger)Returns a value that indicates whether an unsigned integer is equal to a big integer.
Public operatorStatic memberEquality(UInt64, BigInteger)Returns a value that indicates whether an unsigned long is equal to a big integer.
Public operatorStatic memberEquality(BigInteger, BigInteger)Returns a value that indicates whether two big integers are equal.
Public operatorStatic memberEquality(BigInteger, Double)Returns a value that indicates whether a big integer is equal to a double.
Public operatorStatic memberEquality(BigInteger, Int32)Returns a value that indicates whether a big integer is equal to an integer.
Public operatorStatic memberEquality(BigInteger, Int64)Returns a value that indicates whether a big integer is equal to a long.
Public operatorStatic memberEquality(BigInteger, UInt32)Returns a value that indicates whether a big integer is equal to an unsigned integer.
Public operatorStatic memberEquality(BigInteger, UInt64)Returns a value that indicates whether a big integer is equal to an unsigned long.
Public operatorStatic memberExclusiveOrComputes the bitwise exclusive OR on two big integers.
Public operatorStatic memberExplicit(Double to BigInteger)Converts a double to a big integer.
Public operatorStatic memberExplicit(BigInteger to Int64)Converts a big integer to a long.
Public operatorStatic memberExplicit(BigInteger to Int32)Converts a big integer to an integer.
Public operatorStatic memberExplicit(BigInteger to UInt32)Converts a big integer to an integer.
Public operatorStatic memberExplicit(BigInteger to Double)Converts a big integer to a double.
Public operatorStatic memberExplicit(BigInteger to UInt64)Converts a big integer to an unsigned long.
Public operatorStatic memberGreaterThan(Double, BigInteger)Returns a value that indicates whether a big integer is greater than a double.
Public operatorStatic memberGreaterThan(Int32, BigInteger)Returns a value that indicates whether a big integer is greater than an integer.
Public operatorStatic memberGreaterThan(Int64, BigInteger)Returns a value that indicates whether a big integer is greater than a long.
Public operatorStatic memberGreaterThan(UInt32, BigInteger)Returns a value that indicates whether a big integer is greater than an unsigned integer.
Public operatorStatic memberGreaterThan(UInt64, BigInteger)Returns a value that indicates whether a big integer is greater than an unsigned long.
Public operatorStatic memberGreaterThan(BigInteger, BigInteger)Returns a value that indicates whether a big integer is greater than another big integer.
Public operatorStatic memberGreaterThan(BigInteger, Double)Returns a value that indicates whether a big integer is greater than a double.
Public operatorStatic memberGreaterThan(BigInteger, Int32)Returns a value that indicates whether a big integer is greater than an integer.
Public operatorStatic memberGreaterThan(BigInteger, Int64)Returns a value that indicates whether a big integer is larger than a long.
Public operatorStatic memberGreaterThan(BigInteger, UInt32)Returns a value that indicates whether a big integer is greater than an unsigned integer.
Public operatorStatic memberGreaterThan(BigInteger, UInt64)Returns a value that indicates whether a big integer is greater than an unsigned long.
Public operatorStatic memberGreaterThanOrEqual(Double, BigInteger)Returns a value that indicates whether a big integer is greater than or equal to a double.
Public operatorStatic memberGreaterThanOrEqual(Int32, BigInteger)Returns a value that indicates whether a big integer is greater than or equal to an integer.
Public operatorStatic memberGreaterThanOrEqual(Int64, BigInteger)Returns a value that indicates whether a big integer is greater than or equal to a long.
Public operatorStatic memberGreaterThanOrEqual(UInt32, BigInteger)Returns a value that indicates whether a big integer is greater than or equal to an unsigned integer.
Public operatorStatic memberGreaterThanOrEqual(UInt64, BigInteger)Returns a value that indicates whether a big integer is greater than or equal to an unsigned long.
Public operatorStatic memberGreaterThanOrEqual(BigInteger, BigInteger)Returns a value that indicates whether a big integer is greater than or equal to a big integer.
Public operatorStatic memberGreaterThanOrEqual(BigInteger, Double)Returns a value that indicates whether a big integer is greater than or equal to a double.
Public operatorStatic memberGreaterThanOrEqual(BigInteger, Int32)Returns a value that indicates whether a big integer is greater than or equal to an integer.
Public operatorStatic memberGreaterThanOrEqual(BigInteger, Int64)Returns a value that indicates whether a big integer is greater than or equal to a long.
Public operatorStatic memberGreaterThanOrEqual(BigInteger, UInt32)Returns a value that indicates whether a big integer is greater than or equal to an unsigned integer.
Public operatorStatic memberGreaterThanOrEqual(BigInteger, UInt64)Returns a value that indicates whether a big integer is greater than or equal to an unsigned long.
Public operatorStatic memberImplicit(Int32 to BigInteger)Converts an integer to a big integer.
Public operatorStatic memberImplicit(Int64 to BigInteger)Converts a long to a big integer.
Public operatorStatic memberImplicit(UInt32 to BigInteger)Converts an unsigned integer to a big integer.
Public operatorStatic memberImplicit(UInt64 to BigInteger)Converts an unsigned long to a big integer.
Public operatorStatic memberIncrementIncrements a big integer by one.
Public operatorStatic memberInequality(Double, BigInteger)Returns a value that indicates whether a double is not equal to a big integer.
Public operatorStatic memberInequality(Int32, BigInteger)Returns a value that indicates whether an integer is not equal to a big integer.
Public operatorStatic memberInequality(Int64, BigInteger)Returns a value that indicates whether a long is not equal to a big integer.
Public operatorStatic memberInequality(UInt32, BigInteger)Returns a value that indicates whether an unsigned integer is not equal to a big integer.
Public operatorStatic memberInequality(UInt64, BigInteger)Returns a value that indicates whether an unsigned long is not equal to a big integer.
Public operatorStatic memberInequality(BigInteger, BigInteger)Returns a value that indicates whether two big integers are not equal.
Public operatorStatic memberInequality(BigInteger, Double)Returns a value that indicates whether a big integer is not equal to a double.
Public operatorStatic memberInequality(BigInteger, Int32)Returns a value that indicates whether a big integer is not equal to an integer.
Public operatorStatic memberInequality(BigInteger, Int64)Returns a value that indicates whether a big integer is not equal to a long.
Public operatorStatic memberInequality(BigInteger, UInt32)Returns a value that indicates whether a big integer is not equal to an unsigned integer.
Public operatorStatic memberInequality(BigInteger, UInt64)Returns a value that indicates whether a big integer is not equal to an unsigned long.
Public operatorStatic memberLeftShiftShifts a big integer a specified number of bits to the left.
Public operatorStatic memberLessThan(Double, BigInteger)Returns a value that indicates whether a big integer is less than a double.
Public operatorStatic memberLessThan(Int32, BigInteger)Returns a value that indicates whether a big integer is less than an integer.
Public operatorStatic memberLessThan(Int64, BigInteger)Returns a value that indicates whether a big integer is less than a long.
Public operatorStatic memberLessThan(UInt32, BigInteger)Returns a value that indicates whether a big integer is less than an unsigned integer.
Public operatorStatic memberLessThan(UInt64, BigInteger)Returns a value that indicates whether a big integer is less than an unsigned long.
Public operatorStatic memberLessThan(BigInteger, BigInteger)Returns a value that indicates whether a big integer is less than a second big integer.
Public operatorStatic memberLessThan(BigInteger, Double)Returns a value that indicates whether a big integer is less than a double.
Public operatorStatic memberLessThan(BigInteger, Int32)Returns a value that indicates whether a big integer is less than an integer.
Public operatorStatic memberLessThan(BigInteger, Int64)Returns a value that indicates whether a big integer is less than an integer.
Public operatorStatic memberLessThan(BigInteger, UInt32)Returns a value that indicates whether a big integer is less than an unsigned integer.
Public operatorStatic memberLessThan(BigInteger, UInt64)Returns a value that indicates whether a big integer is less than an unsigned long.
Public operatorStatic memberLessThanOrEqual(Double, BigInteger)Returns a value that indicates whether a big integer is less than or equal to a double.
Public operatorStatic memberLessThanOrEqual(Int32, BigInteger)Returns a value that indicates whether a big integer is less than or equal to an integer.
Public operatorStatic memberLessThanOrEqual(Int64, BigInteger)Returns a value that indicates whether a big integer is less than or equal to a long.
Public operatorStatic memberLessThanOrEqual(UInt32, BigInteger)Returns a value that indicates whether a big integer is less than or equal to an unsigned integer.
Public operatorStatic memberLessThanOrEqual(UInt64, BigInteger)Returns a value that indicates whether a big integer is less than or equal to an unsigned long.
Public operatorStatic memberLessThanOrEqual(BigInteger, BigInteger)Returns a value that indicates whether a big integer is less than or equal to another big integer.
Public operatorStatic memberLessThanOrEqual(BigInteger, Double)Returns a value that indicates whether a big integer is less than or equal to a double.
Public operatorStatic memberLessThanOrEqual(BigInteger, Int32)Returns a value that indicates whether a big integer is less than or equal to an integer.
Public operatorStatic memberLessThanOrEqual(BigInteger, Int64)Returns a value that indicates whether a big integer is less than or equal to a long.
Public operatorStatic memberLessThanOrEqual(BigInteger, UInt32)Returns a value that indicates whether a big integer is less than or equal to an unsigned integer.
Public operatorStatic memberLessThanOrEqual(BigInteger, UInt64)Returns a value that indicates whether a big integer is less than or equal to an unsigned long.
Public operatorStatic memberModulusReturns the remainder that results from division with two specified BigInteger values.
Public operatorStatic memberMultiplyReturns the product of two big integers.
Public operatorStatic memberOnesComplementReturns the bitwise one's complement of a big integer.
Public operatorStatic memberRightShiftShifts a big integer a specified number of bits to the right.
Public operatorStatic memberSubtractionSubtracts a big integer from another big integer.
Public operatorStatic memberUnaryNegationNegates a specified big integer.
Public operatorStatic memberUnaryPlusReturns the value of a big integer.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft