Numerical Components for .NET
Namespace: Extreme.MathematicsAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 4.2.11333.0 (4.2.12253.0)
[SerializableAttribute] public struct BigInteger : IComparable, IConvertible, IFormattable, IEquatable<BigInteger>, IComparable<BigInteger>, IEquatable<int>, IComparable<int>
<SerializableAttribute> _ Public Structure BigInteger _ Implements IComparable, IConvertible, IFormattable, IEquatable(Of BigInteger), _ IComparable(Of BigInteger), IEquatable(Of Integer), IComparable(Of Integer)
[SerializableAttribute] public value class BigInteger : IComparable, IConvertible, IFormattable, IEquatable<BigInteger>, IComparable<BigInteger>, IEquatable<int>, IComparable<int>
[<SealedAttribute>] [<SerializableAttribute>] type BigInteger = struct interface IComparable interface IConvertible interface IFormattable interface IEquatable<BigInteger> interface IComparable<BigInteger> interface IEquatable<int> interface IComparable<int> end
Use the BigInteger structure to represent positive integers that may be too large to fit into the built-in integer types. The BigInteger structure can exactly represent numbers up to about 646 million decimal digits.
Big integers can be constructed in a variety of ways, including from other numerical types and from strings. Implicit (widening) conversions are available for all built-in unsigned integer types. Explicit conversions from signed integer types as well as Single, Double and Decimal are also available.
The BigInteger structure provides methods for all the common operations on integers. Overloaded versions of the major arithmetic operators are provided for languages that support them. For languages that don't support operator overloading, equivalent staticSharedstaticstatic (Shared in Visual Basic) methods are supplied.
When performing a binary operation, if one of the operands is a BigInteger, then the other operand is required to also be an integral type. Prior to performing the operation, if the other operand is not a BigInteger, it is converted to BigInteger.
The BigInteger type supports generic arithmetic. The associated arithmetic type implements IEuclideanRingOperations<(Of <(<'T>)>)>, which means it supports addition, subtraction, multiplication and integer division with remainder.
Copyright © 2003-2013, Extreme Optimization. All rights reserved. Extreme Optimization, Complexity made simple, M#, and M Sharp are trademarks of ExoAnalytics Inc. Microsoft, Visual C#, Visual Basic, Visual Studio, Visual Studio.NET, and the Optimized for Visual Studio logo are registered trademarks of Microsoft Corporation.