BigInteger Structure
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Représente un entier signé arbitrairement grand.
public value class BigInteger : IComparable, IComparable<System::Numerics::BigInteger>, IEquatable<System::Numerics::BigInteger>, IFormattable
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 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 struct BigInteger : IComparable, IComparable<System.Numerics.BigInteger>, IEquatable<System.Numerics.BigInteger>, IFormattable
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>
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>
[System.Serializable]
public struct BigInteger : IComparable, IComparable<System.Numerics.BigInteger>, IEquatable<System.Numerics.BigInteger>, IFormattable
type BigInteger = struct
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 IUtf8SpanFormattable
interface IUtf8SpanParsable<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 IUtf8SpanFormattable
interface IUtf8SpanParsable<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 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 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)
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)
- Héritage
- Attributs
- Implémente
-
IComparable IComparable<BigInteger> IEquatable<BigInteger> IFormattable IComparable<TSelf> IEquatable<TSelf> IParsable<BigInteger> IParsable<TSelf> ISpanFormattable ISpanParsable<BigInteger> ISpanParsable<TSelf> IUtf8SpanFormattable IUtf8SpanParsable<BigInteger> IUtf8SpanParsable<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>
Remarques
Le BigInteger type est un type immuable qui représente un entier arbitrairement volumineux dont la valeur en théorie n’a aucune limite supérieure ou inférieure. Les membres du type BigInteger sont étroitement parallèles à ceux d'autres types intégraux (les types Byte, Int16, Int32, Int64, SByte, UInt16, UInt32 et UInt64). Ce type diffère des autres types intégraux dans .NET, qui ont une plage indiquée par leurs propriétés MinValue et MaxValue.
Note
Étant donné que le BigInteger type est immuable (voir Mutability) et qu’il n’a pas de limites supérieures ou inférieures, un OutOfMemoryException peut être déclenché lors de toute opération qui fait croître une BigInteger valeur au-delà des limites.
Instancier un objet BigInteger
Vous pouvez instancier un BigInteger objet de plusieurs façons :
Vous pouvez utiliser le
newmot clé et fournir n’importe quelle valeur intégrale ou à virgule flottante comme paramètre au BigInteger constructeur. (Les valeurs à virgule flottante sont tronquées avant qu’elles ne soient affectées au BigInteger.) L’exemple suivant montre comment utiliser lenewmot-clé pour instancier BigInteger valeurs.BigInteger bigIntFromDouble = new BigInteger(179032.6541); Console.WriteLine(bigIntFromDouble); BigInteger bigIntFromInt64 = new BigInteger(934157136952); Console.WriteLine(bigIntFromInt64); // The example displays the following output: // 179032 // 934157136952Dim bigIntFromDouble As New BigInteger(179032.6541) Console.WriteLine(bigIntFromDouble) Dim bigIntFromInt64 As New BigInteger(934157136952) Console.WriteLine(bigIntFromInt64) ' The example displays the following output: ' 179032 ' 934157136952Vous pouvez déclarer une BigInteger variable et l’affecter comme vous le feriez pour n’importe quel type numérique, tant que cette valeur est un type intégral. L’exemple suivant utilise l’affectation pour créer une BigInteger valeur à partir d’un Int64.
long longValue = 6315489358112; BigInteger assignedFromLong = longValue; Console.WriteLine(assignedFromLong); // The example displays the following output: // 6315489358112Dim longValue As Long = 6315489358112 Dim assignedFromLong As BigInteger = longValue Console.WriteLine(assignedFromLong) ' The example displays the following output: ' 6315489358112Vous pouvez affecter une valeur décimale ou à virgule flottante à un objet BigInteger si vous la transformez ou la convertissez au préalable. L’exemple suivant convertit explicitement une valeur Double et une valeur Decimal en une valeur BigInteger, en utilisant C# ou Visual Basic.
BigInteger assignedFromDouble = (BigInteger) 179032.6541; Console.WriteLine(assignedFromDouble); BigInteger assignedFromDecimal = (BigInteger) 64312.65m; Console.WriteLine(assignedFromDecimal); // The example displays the following output: // 179032 // 64312Dim assignedFromDouble As BigInteger = CType(179032.6541, BigInteger) Console.WriteLine(assignedFromDouble) Dim assignedFromDecimal As BigInteger = CType(64312.65D, BigInteger) Console.WriteLine(assignedFromDecimal) ' The example displays the following output: ' 179032 ' 64312
Ces méthodes vous permettent d’instancier un BigInteger objet dont la valeur se trouve dans la plage d’un des types numériques existants uniquement. Vous pouvez instancier un BigInteger objet dont la valeur peut dépasser la plage des types numériques existants de l’une des trois manières suivantes :
Vous pouvez utiliser le
newmot clé et fournir un tableau d’octets de n’importe quelle taille au BigInteger.BigInteger constructeur. Par exemple:byte[] byteArray = { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0}; BigInteger newBigInt = new BigInteger(byteArray); Console.WriteLine($"The value of newBigInt is {newBigInt} (or 0x{newBigInt:x})."); // The example displays the following output: // The value of newBigInt is 4759477275222530853130 (or 0x102030405060708090a).Dim byteArray() As Byte = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0} Dim newBigInt As New BigInteger(byteArray) Console.WriteLine("The value of newBigInt is {0} (or 0x{0:x}).", newBigInt) ' The example displays the following output: ' The value of newBigInt is 4759477275222530853130 (or 0x102030405060708090a).Vous pouvez appeler les méthodes Parse ou TryParse pour convertir la représentation sous forme de chaîne d’un nombre en une BigInteger. Par exemple:
string positiveString = "91389681247993671255432112000000"; string negativeString = "-90315837410896312071002088037140000"; BigInteger posBigInt = 0; BigInteger negBigInt = 0; try { posBigInt = BigInteger.Parse(positiveString); Console.WriteLine(posBigInt); } catch (FormatException) { Console.WriteLine($"Unable to convert the string '{positiveString}' to a BigInteger value."); } if (BigInteger.TryParse(negativeString, out negBigInt)) Console.WriteLine(negBigInt); else Console.WriteLine($"Unable to convert the string '{negativeString}' to a BigInteger value."); // The example displays the following output: // 9.1389681247993671255432112E+31 // -9.0315837410896312071002088037E+34Dim positiveString As String = "91389681247993671255432112000000" Dim negativeString As String = "-90315837410896312071002088037140000" Dim posBigInt As BigInteger = 0 Dim negBigInt As BigInteger = 0 Try posBigInt = BigInteger.Parse(positiveString) Console.WriteLine(posBigInt) Catch e As FormatException Console.WriteLine("Unable to convert the string '{0}' to a BigInteger value.", positiveString) End Try If BigInteger.TryParse(negativeString, negBigInt) Then Console.WriteLine(negBigInt) Else Console.WriteLine("Unable to convert the string '{0}' to a BigInteger value.", negativeString) End If ' The example displays the following output: ' 9.1389681247993671255432112E+31 ' -9.0315837410896312071002088037E+34Vous pouvez appeler une
staticméthode (Shareden Visual Basic) BigInteger qui effectue une opération sur une expression numérique et retourne un résultat calculé BigInteger . L’exemple suivant effectue cette opération en cubant UInt64.MaxValue et en affectant le résultat à un BigInteger.BigInteger number = BigInteger.Pow(UInt64.MaxValue, 3); Console.WriteLine(number); // The example displays the following output: // 6277101735386680762814942322444851025767571854389858533375Dim number As BigInteger = BigInteger.Pow(UInt64.MaxValue, 3) Console.WriteLine(number) ' The example displays the following output: ' 6277101735386680762814942322444851025767571854389858533375
La valeur non initialisée d’un BigInteger est Zero.
Effectuer des opérations sur les valeurs BigInteger
Vous pouvez utiliser une BigInteger instance comme vous l’utiliseriez n’importe quel autre type intégral.
BigInteger surcharge les opérateurs numériques standard pour vous permettre d’effectuer des opérations mathématiques de base telles que l’ajout, la soustraction, la division, la multiplication et la négation unaire. Vous pouvez également utiliser les opérateurs numériques standard pour comparer deux BigInteger valeurs entre elles. Comme les autres types intégraux, BigInteger prend également en charge les opérateurs bit à bit And, Or, XOr, décalage à gauche et décalage à droite. Pour les langages qui ne prennent pas en charge les opérateurs personnalisés, la BigInteger structure fournit également des méthodes équivalentes pour effectuer des opérations mathématiques. Ceux-ci incluent Add, , DivideMultiply, Negate, Subtractet plusieurs autres.
De nombreux membres de la BigInteger structure correspondent directement aux membres des autres types intégraux. En outre, BigInteger ajoute des membres tels que les suivants :
Sign, qui retourne une valeur indiquant le signe d'une valeur BigInteger.
Abs, qui retourne la valeur absolue d’une BigInteger valeur.
DivRem, qui renvoie à la fois le quotient et le reste d’une opération de division.
GreatestCommonDivisor, qui retourne le plus grand diviseur commun de deux BigInteger valeurs.
La plupart de ces membres supplémentaires correspondent aux membres de la Math classe, qui fournissent les fonctionnalités permettant d’utiliser les types numériques primitifs.
Mutabilité
L’exemple suivant instancie un BigInteger objet, puis incrémente sa valeur par un.
BigInteger number = BigInteger.Multiply(Int64.MaxValue, 3);
number++;
Console.WriteLine(number);
Dim number As BigInteger = BigInteger.Multiply(Int64.MaxValue, 3)
number += 1
Console.WriteLine(number)
Bien que cet exemple apparaisse pour modifier la valeur de l’objet existant, ce n’est pas le cas. BigInteger les objets sont immuables, ce qui signifie qu’en interne, le Common Language Runtime crée réellement un objet BigInteger et lui affecte une valeur supérieure à sa valeur précédente. Ce nouvel objet est ensuite retourné à l’appelant.
Note
Les autres types numériques dans .NET sont également immuables. Toutefois, étant donné que le BigInteger type n’a pas de limites supérieures ou inférieures, ses valeurs peuvent croître extrêmement volumineuses et avoir un impact mesurable sur les performances.
Bien que ce processus soit transparent pour l’appelant, il entraîne une pénalité de performances. Dans certains cas, en particulier lorsque des opérations répétées sont effectuées dans une boucle sur des valeurs très volumineuses BigInteger , cette pénalité de performances peut être significative. Par exemple, dans l’exemple suivant, une opération est effectuée de manière répétitive jusqu’à un million de fois, et une BigInteger valeur est incrémentée par une fois que l’opération réussit.
BigInteger number = Int64.MaxValue ^ 5;
int repetitions = 1000000;
// Perform some repetitive operation 1 million times.
for (int ctr = 0; ctr <= repetitions; ctr++)
{
// Perform some operation. If it fails, exit the loop.
if (!SomeOperationSucceeds()) break;
// The following code executes if the operation succeeds.
number++;
}
Dim number As BigInteger = Int64.MaxValue ^ 5
Dim repetitions As Integer = 1000000
' Perform some repetitive operation 1 million times.
For ctr As Integer = 0 To repetitions
' Perform some operation. If it fails, exit the loop.
If Not SomeOperationSucceeds() Then Exit For
' The following code executes if the operation succeeds.
number += 1
Next
Dans ce cas, vous pouvez améliorer les performances en effectuant toutes les affectations intermédiaires à une Int32 variable. La valeur finale de la variable peut ensuite être affectée à l’objet BigInteger lorsque la boucle s’arrête. L'exemple suivant illustre cette situation.
BigInteger number = Int64.MaxValue ^ 5;
int repetitions = 1000000;
int actualRepetitions = 0;
// Perform some repetitive operation 1 million times.
for (int ctr = 0; ctr <= repetitions; ctr++)
{
// Perform some operation. If it fails, exit the loop.
if (!SomeOperationSucceeds()) break;
// The following code executes if the operation succeeds.
actualRepetitions++;
}
number += actualRepetitions;
Dim number As BigInteger = Int64.MaxValue ^ 5
Dim repetitions As Integer = 1000000
Dim actualRepetitions As Integer = 0
' Perform some repetitive operation 1 million times.
For ctr As Integer = 0 To repetitions
' Perform some operation. If it fails, exit the loop.
If Not SomeOperationSucceeds() Then Exit For
' The following code executes if the operation succeeds.
actualRepetitions += 1
Next
number += actualRepetitions
Tableaux d’octets et chaînes hexadécimales
Si vous convertissez BigInteger des valeurs en tableaux d’octets ou si vous convertissez des tableaux d’octets en BigInteger valeurs, vous devez prendre en compte l’ordre des octets. La BigInteger structure s’attend à ce que les octets individuels d’un tableau d’octets apparaissent dans un ordre peu endien (autrement dit, les octets de l’ordre inférieur de la valeur précèdent les octets de l’ordre supérieur). Vous pouvez récupérer une valeur BigInteger en appelant la méthode ToByteArray, puis en passant le tableau d’octets obtenu au constructeur BigInteger(Byte[]), comme le montre l'exemple ci-dessous.
BigInteger number = BigInteger.Pow(Int64.MaxValue, 2);
Console.WriteLine(number);
// Write the BigInteger value to a byte array.
byte[] bytes = number.ToByteArray();
// Display the byte array.
foreach (byte byteValue in bytes)
Console.Write("0x{0:X2} ", byteValue);
Console.WriteLine();
// Restore the BigInteger value from a Byte array.
BigInteger newNumber = new BigInteger(bytes);
Console.WriteLine(newNumber);
// The example displays the following output:
// 8.5070591730234615847396907784E+37
// 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x3F
//
// 8.5070591730234615847396907784E+37
Dim number As BigInteger = BigInteger.Pow(Int64.MaxValue, 2)
Console.WriteLine(number)
' Write the BigInteger value to a byte array.
Dim bytes() As Byte = number.ToByteArray()
' Display the byte array.
For Each byteValue As Byte In bytes
Console.Write("0x{0:X2} ", byteValue)
Next
Console.WriteLine()
' Restore the BigInteger value from a Byte array.
Dim newNumber As BigInteger = New BigInteger(bytes)
Console.WriteLine(newNumber)
' The example displays the following output:
' 8.5070591730234615847396907784E+37
' 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x3F
'
' 8.5070591730234615847396907784E+37
Pour instancier une BigInteger valeur à partir d’un tableau d’octets qui représente une valeur d’un autre type intégral, vous pouvez passer la valeur intégrale à la BitConverter.GetBytes méthode, puis passer le tableau d’octets résultant au BigInteger(Byte[]) constructeur. L’exemple suivant instancie une BigInteger valeur à partir d’un tableau d’octets qui représente une Int16 valeur.
short originalValue = 30000;
Console.WriteLine(originalValue);
// Convert the Int16 value to a byte array.
byte[] bytes = BitConverter.GetBytes(originalValue);
// Display the byte array.
foreach (byte byteValue in bytes)
Console.Write("0x{0} ", byteValue.ToString("X2"));
Console.WriteLine();
// Pass byte array to the BigInteger constructor.
BigInteger number = new BigInteger(bytes);
Console.WriteLine(number);
// The example displays the following output:
// 30000
// 0x30 0x75
// 30000
Dim originalValue As Short = 30000
Console.WriteLine(originalValue)
' Convert the Int16 value to a byte array.
Dim bytes() As Byte = BitConverter.GetBytes(originalValue)
' Display the byte array.
For Each byteValue As Byte In bytes
Console.Write("0x{0} ", byteValue.ToString("X2"))
Next
Console.WriteLine()
' Pass byte array to the BigInteger constructor.
Dim number As BigInteger = New BigInteger(bytes)
Console.WriteLine(number)
' The example displays the following output:
' 30000
' 0x30 0x75
' 30000
La structure BigInteger suppose que les valeurs négatives sont stockées à l’aide de la représentation à complément des deux. Étant donné que la BigInteger structure représente une valeur numérique sans longueur fixe, le BigInteger(Byte[]) constructeur interprète toujours le bit le plus significatif du dernier octet du tableau comme un bit de signe. Pour empêcher le constructeur BigInteger(Byte[]) de confondre la représentation à complément des deux d’une valeur négative avec la représentation en signe et grandeur d’une valeur positive, les valeurs positives pour lesquelles le bit le plus significatif du dernier octet du tableau d’octets serait généralement activé doivent inclure un octet supplémentaire dont la valeur est 0. Par exemple, 0xC0 0xBD 0xF0 0xFF est la représentation hexadécimale peu endienne de -1 000 000 ou 4 293 967 296. Étant donné que le bit le plus significatif du dernier octet de ce tableau est activé, la valeur du tableau d’octets est interprétée par le BigInteger(Byte[]) constructeur comme -1 000 000. Pour instancier un BigInteger dont la valeur est positive, un tableau d’octets dont les éléments sont 0xC0 0xBD 0xF0 0xFF 0x00 doit être passé au constructeur. L’exemple suivant illustre cela.
int negativeNumber = -1000000;
uint positiveNumber = 4293967296;
byte[] negativeBytes = BitConverter.GetBytes(negativeNumber);
BigInteger negativeBigInt = new BigInteger(negativeBytes);
Console.WriteLine(negativeBigInt.ToString("N0"));
byte[] tempPosBytes = BitConverter.GetBytes(positiveNumber);
byte[] positiveBytes = new byte[tempPosBytes.Length + 1];
Array.Copy(tempPosBytes, positiveBytes, tempPosBytes.Length);
BigInteger positiveBigInt = new BigInteger(positiveBytes);
Console.WriteLine(positiveBigInt.ToString("N0"));
// The example displays the following output:
// -1,000,000
// 4,293,967,296
Dim negativeNumber As Integer = -1000000
Dim positiveNumber As UInteger = 4293967296
Dim negativeBytes() As Byte = BitConverter.GetBytes(negativeNumber)
Dim negativeBigInt As New BigInteger(negativeBytes)
Console.WriteLine(negativeBigInt.ToString("N0"))
Dim tempPosBytes() As Byte = BitConverter.GetBytes(positiveNumber)
Dim positiveBytes(tempposBytes.Length) As Byte
Array.Copy(tempPosBytes, positiveBytes, tempPosBytes.Length)
Dim positiveBigInt As New BigInteger(positiveBytes)
Console.WriteLine(positiveBigInt.ToString("N0"))
' The example displays the following output:
' -1,000,000
' 4,293,967,296
Les tableaux d’octets créés par la ToByteArray méthode à partir de valeurs positives incluent cet octet de valeur zéro supplémentaire. Ainsi, la structure BigInteger peut transférer avec succès des valeurs aller-retour en les affectant aux tableaux d’octets, puis en les restaurant depuis ceux-ci, comme l’illustre l’exemple suivant.
BigInteger positiveValue = 15777216;
BigInteger negativeValue = -1000000;
Console.WriteLine("Positive value: " + positiveValue.ToString("N0"));
byte[] bytes = positiveValue.ToByteArray();
foreach (byte byteValue in bytes)
Console.Write("{0:X2} ", byteValue);
Console.WriteLine();
positiveValue = new BigInteger(bytes);
Console.WriteLine("Restored positive value: " + positiveValue.ToString("N0"));
Console.WriteLine();
Console.WriteLine("Negative value: " + negativeValue.ToString("N0"));
bytes = negativeValue.ToByteArray();
foreach (byte byteValue in bytes)
Console.Write("{0:X2} ", byteValue);
Console.WriteLine();
negativeValue = new BigInteger(bytes);
Console.WriteLine("Restored negative value: " + negativeValue.ToString("N0"));
// The example displays the following output:
// Positive value: 15,777,216
// C0 BD F0 00
// Restored positive value: 15,777,216
//
// Negative value: -1,000,000
// C0 BD F0
// Restored negative value: -1,000,000
Dim positiveValue As BigInteger = 15777216
Dim negativeValue As BigInteger = -1000000
Console.WriteLine("Positive value: " + positiveValue.ToString("N0"))
Dim bytes() As Byte = positiveValue.ToByteArray()
For Each byteValue As Byte In bytes
Console.Write("{0:X2} ", byteValue)
Next
Console.WriteLine()
positiveValue = New BigInteger(bytes)
Console.WriteLine("Restored positive value: " + positiveValue.ToString("N0"))
Console.WriteLine()
Console.WriteLIne("Negative value: " + negativeValue.ToString("N0"))
bytes = negativeValue.ToByteArray()
For Each byteValue As Byte In bytes
Console.Write("{0:X2} ", byteValue)
Next
Console.WriteLine()
negativeValue = New BigInteger(bytes)
Console.WriteLine("Restored negative value: " + negativeValue.ToString("N0"))
' The example displays the following output:
' Positive value: 15,777,216
' C0 BD F0 00
' Restored positive value: 15,777,216
'
' Negative value: -1,000,000
' C0 BD F0
' Restored negative value: -1,000,000
Toutefois, vous devrez peut-être ajouter cet octet de valeur zéro supplémentaire aux tableaux d’octets créés dynamiquement par le développeur ou retournés par des méthodes qui convertissent des entiers non signés en tableaux d’octets (tels que BitConverter.GetBytes(UInt16), BitConverter.GetBytes(UInt32)et BitConverter.GetBytes(UInt64)).
Lors de l’analyse d’une chaîne hexadécimale, les BigInteger.Parse(String, NumberStyles)BigInteger.Parse(String, NumberStyles, IFormatProvider) méthodes supposent que si le bit le plus significatif du premier octet de la chaîne est défini ou si le premier chiffre hexadécimal de la chaîne représente les quatre bits inférieurs d’une valeur d’octet, la valeur est représentée à l’aide de la représentation complète de deux. Par exemple, « FF01 » et « F01 » représentent la valeur décimale -255. Pour différencier les valeurs positives des valeurs négatives, les valeurs positives doivent inclure un zéro en tête. Les surcharges pertinentes de la ToString méthode, lorsqu’elles sont passées à la chaîne de format « X », ajoutent un zéro de début à la chaîne hexadécimale retournée pour les valeurs positives. Cela permet de faire un aller-retour des valeurs BigInteger en utilisant les méthodes ToString et Parse, comme l’illustre l’exemple suivant.
BigInteger negativeNumber = -1000000;
BigInteger positiveNumber = 15777216;
string negativeHex = negativeNumber.ToString("X");
string positiveHex = positiveNumber.ToString("X");
BigInteger negativeNumber2, positiveNumber2;
negativeNumber2 = BigInteger.Parse(negativeHex,
NumberStyles.HexNumber);
positiveNumber2 = BigInteger.Parse(positiveHex,
NumberStyles.HexNumber);
Console.WriteLine($"Converted {negativeNumber:N0} to {negativeHex} back to {negativeNumber2:N0}.");
Console.WriteLine($"Converted {positiveNumber:N0} to {positiveHex} back to {positiveNumber2:N0}.");
// The example displays the following output:
// Converted -1,000,000 to F0BDC0 back to -1,000,000.
// Converted 15,777,216 to 0F0BDC0 back to 15,777,216.
Dim negativeNumber As BigInteger = -1000000
Dim positiveNumber As BigInteger = 15777216
Dim negativeHex As String = negativeNumber.ToString("X")
Dim positiveHex As string = positiveNumber.ToString("X")
Dim negativeNumber2, positiveNumber2 As BigInteger
negativeNumber2 = BigInteger.Parse(negativeHex,
NumberStyles.HexNumber)
positiveNumber2 = BigInteger.Parse(positiveHex,
NumberStyles.HexNumber)
Console.WriteLine("Converted {0:N0} to {1} back to {2:N0}.",
negativeNumber, negativeHex, negativeNumber2)
Console.WriteLine("Converted {0:N0} to {1} back to {2:N0}.",
positiveNumber, positiveHex, positiveNumber2)
' The example displays the following output:
' Converted -1,000,000 to F0BDC0 back to -1,000,000.
' Converted 15,777,216 to 0F0BDC0 back to 15,777,216.
Toutefois, les chaînes hexadécimales créées en appelant les ToString méthodes des autres types intégraux ou les surcharges de la ToString méthode qui incluent un toBase paramètre n’indiquent pas le signe de la valeur ou du type de données source à partir duquel la chaîne hexadécimale a été dérivée. L’instanciation réussie d’une BigInteger valeur à partir d’une telle chaîne nécessite une logique supplémentaire. L’exemple suivant fournit une implémentation possible.
using System;
using System.Globalization;
using System.Numerics;
public struct HexValue
{
public int Sign;
public string Value;
}
public class ByteHexExample2
{
public static void Main()
{
uint positiveNumber = 4039543321;
int negativeNumber = -255423975;
// Convert the numbers to hex strings.
HexValue hexValue1, hexValue2;
hexValue1.Value = positiveNumber.ToString("X");
hexValue1.Sign = Math.Sign(positiveNumber);
hexValue2.Value = Convert.ToString(negativeNumber, 16);
hexValue2.Sign = Math.Sign(negativeNumber);
// Round-trip the hexadecimal values to BigInteger values.
string hexString;
BigInteger positiveBigInt, negativeBigInt;
hexString = (hexValue1.Sign == 1 ? "0" : "") + hexValue1.Value;
positiveBigInt = BigInteger.Parse(hexString, NumberStyles.HexNumber);
Console.WriteLine($"Converted {positiveNumber} to {hexValue1.Value} and back to {positiveBigInt}.");
hexString = (hexValue2.Sign == 1 ? "0" : "") + hexValue2.Value;
negativeBigInt = BigInteger.Parse(hexString, NumberStyles.HexNumber);
Console.WriteLine($"Converted {negativeNumber} to {hexValue2.Value} and back to {negativeBigInt}.");
}
}
// The example displays the following output:
// Converted 4039543321 to F0C68A19 and back to 4039543321.
// Converted -255423975 to f0c68a19 and back to -255423975.
Imports System.Globalization
Imports System.Numerics
Public Structure HexValue
Public Sign As Integer
Public Value As String
End Structure
Module Example2
Public Sub Main()
Dim positiveNumber As UInteger = 4039543321
Dim negativeNumber As Integer = -255423975
' Convert the numbers to hex strings.
Dim hexValue1, hexValue2 As HexValue
hexValue1.Value = positiveNumber.ToString("X")
hexValue1.Sign = Math.Sign(positiveNumber)
hexValue2.Value = Convert.ToString(negativeNumber, 16)
hexValue2.Sign = Math.Sign(negativeNumber)
' Round-trip the hexadecimal values to BigInteger values.
Dim hexString As String
Dim positiveBigInt, negativeBigInt As BigInteger
hexString = CStr(IIf(hexValue1.Sign = 1, "0", "")) + hexValue1.Value
positiveBigInt = BigInteger.Parse(hexString, NumberStyles.HexNumber)
Console.WriteLine("Converted {0} to {1} and back to {2}.",
positiveNumber, hexValue1.Value, positiveBigInt)
hexString = CStr(IIf(hexValue2.Sign = 1, "0", "")) + hexValue2.Value
negativeBigInt = BigInteger.Parse(hexString, NumberStyles.HexNumber)
Console.WriteLine("Converted {0} to {1} and back to {2}.",
negativeNumber, hexValue2.Value, negativeBigInt)
End Sub
End Module
' The example displays the following output:
' Converted 4039543321 to F0C68A19 and back to 4039543321.
' Converted -255423975 to f0c68a19 and back to -255423975.
Constructeurs
| Nom | Description |
|---|---|
| BigInteger(Byte[]) |
Initialise une nouvelle instance de la BigInteger structure à l’aide des valeurs d’un tableau d’octets. |
| BigInteger(Decimal) |
Initialise une nouvelle instance de la structure à l’aide BigInteger d’une Decimal valeur. |
| BigInteger(Double) |
Initialise une nouvelle instance de la structure à l’aide BigInteger d’une valeur à virgule flottante double précision. |
| BigInteger(Int32) |
Initialise une nouvelle instance de la structure à l’aide BigInteger d’une valeur entière signée 32 bits. |
| BigInteger(Int64) |
Initialise une nouvelle instance de la structure à l’aide BigInteger d’une valeur entière signée 64 bits. |
| BigInteger(ReadOnlySpan<Byte>, Boolean, Boolean) |
Initialise une nouvelle instance de la BigInteger structure à l’aide des valeurs d’une étendue en lecture seule d’octets, et indique éventuellement l’encodage de signature et l’ordre d’octet d’endianness. |
| BigInteger(Single) |
Initialise une nouvelle instance de la structure à l’aide BigInteger d’une valeur à virgule flottante simple précision. |
| BigInteger(UInt32) |
Initialise une nouvelle instance de la structure à l’aide BigInteger d’une valeur entière 32 bits non signée. |
| BigInteger(UInt64) |
Initialise une nouvelle instance de la BigInteger structure avec une valeur entière 64 bits non signée. |
Propriétés
| Nom | Description |
|---|---|
| IsEven |
Indique si la valeur de l’objet actuel BigInteger est un nombre pair. |
| IsOne |
Indique si la valeur de l’objet actuel BigInteger est One. |
| IsPowerOfTwo |
Indique si la valeur de l’objet actuel BigInteger est une puissance de deux. |
| IsZero |
Indique si la valeur de l’objet actuel BigInteger est Zero. |
| MinusOne |
Obtient une valeur qui représente le nombre négatif (-1). |
| One |
Obtient une valeur qui représente le numéro 1 (1). |
| Sign |
Obtient un nombre qui indique le signe (négatif, positif ou zéro) de l’objet actuel BigInteger . |
| Zero |
Obtient une valeur qui représente le nombre 0 (zéro). |
Méthodes
| Nom | Description |
|---|---|
| Abs(BigInteger) |
Obtient la valeur absolue d’un BigInteger objet. |
| Add(BigInteger, BigInteger) |
Ajoute deux BigInteger valeurs et retourne le résultat. |
| Clamp(BigInteger, BigInteger, BigInteger) |
Limite une valeur à une valeur minimale et maximale inclusive. |
| Compare(BigInteger, BigInteger) |
Compare deux BigInteger valeurs et retourne un entier qui indique si la première valeur est inférieure, égale ou supérieure à la deuxième valeur. |
| CompareTo(BigInteger) |
Compare cette instance à une seconde BigInteger et retourne un entier qui indique si la valeur de cette instance est inférieure, égale ou supérieure à la valeur de l’objet spécifié. |
| CompareTo(Int64) |
Compare cette instance à un entier 64 bits signé et retourne un entier qui indique si la valeur de cette instance est inférieure, égale ou supérieure à la valeur de l’entier 64 bits signé. |
| CompareTo(Object) |
Compare cette instance à un objet spécifié et retourne un entier qui indique si la valeur de cette instance est inférieure, égale ou supérieure à la valeur de l’objet spécifié. |
| CompareTo(UInt64) |
Compare cette instance à un entier 64 bits non signé et retourne un entier qui indique si la valeur de cette instance est inférieure, égale ou supérieure à la valeur de l’entier 64 bits non signé. |
| CopySign(BigInteger, BigInteger) |
Copie le signe d’une valeur au signe d’une autre valeur. |
| CreateChecked<TOther>(TOther) |
Crée une instance du type actuel à partir d’une valeur, lève une exception de dépassement de capacité pour toutes les valeurs qui se trouvent en dehors de la plage représentée du type actuel. |
| CreateSaturating<TOther>(TOther) |
Crée une instance du type actuel à partir d’une valeur, en saturant toutes les valeurs qui se trouvent en dehors de la plage représentée du type actuel. |
| CreateTruncating<TOther>(TOther) |
Crée une instance du type actuel à partir d’une valeur, tronqué toutes les valeurs qui se trouvent en dehors de la plage représentée du type actuel. |
| Divide(BigInteger, BigInteger) |
Divise une BigInteger valeur par une autre et retourne le résultat. |
| DivRem(BigInteger, BigInteger, BigInteger) |
Divise une BigInteger valeur par une autre, retourne le résultat et retourne le reste dans un paramètre de sortie. |
| DivRem(BigInteger, BigInteger) |
Calcule le quotient et le reste de deux valeurs. |
| Equals(BigInteger) |
Retourne une valeur qui indique si l’instance actuelle et un objet spécifié BigInteger ont la même valeur. |
| Equals(Int64) |
Retourne une valeur qui indique si l’instance actuelle et un entier 64 bits signé ont la même valeur. |
| Equals(Object) |
Retourne une valeur qui indique si l’instance actuelle et un objet spécifié ont la même valeur. |
| Equals(UInt64) |
Retourne une valeur qui indique si l’instance actuelle et un entier 64 bits non signé ont la même valeur. |
| GetBitLength() |
Obtient le nombre de bits requis pour la représentation complète des deux plus courtes de l’instance actuelle sans le bit de signe. |
| GetByteCount(Boolean) |
Obtient le nombre d’octets qui seront générés par ToByteArray(Boolean, Boolean) et TryWriteBytes(Span<Byte>, Int32, Boolean, Boolean). |
| GetHashCode() |
Retourne le code de hachage de l’objet actif BigInteger . |
| GreatestCommonDivisor(BigInteger, BigInteger) |
Trouve le plus grand diviseur commun de deux BigInteger valeurs. |
| IsEvenInteger(BigInteger) |
Détermine si une valeur représente un nombre intégral pair. |
| IsNegative(BigInteger) |
Détermine si une valeur est négative. |
| IsOddInteger(BigInteger) |
Détermine si une valeur représente un nombre intégral impair. |
| IsPositive(BigInteger) |
Détermine si une valeur est positive. |
| IsPow2(BigInteger) |
Détermine si une valeur est une puissance de deux. |
| LeadingZeroCount(BigInteger) |
Calcule le nombre de zéros non significatifs dans une valeur. |
| Log(BigInteger, Double) |
Retourne le logarithme d’un nombre spécifié dans une base spécifiée. |
| Log(BigInteger) |
Retourne le logarithme naturel (de base |
| Log10(BigInteger) |
Retourne le logarithme de base 10 d’un nombre spécifié. |
| Log2(BigInteger) |
Calcule le journal2 d’une valeur. |
| Max(BigInteger, BigInteger) |
Retourne la plus grande de deux BigInteger valeurs. |
| MaxMagnitude(BigInteger, BigInteger) |
Compare deux valeurs au calcul, ce qui est supérieur. |
| Min(BigInteger, BigInteger) |
Retourne la valeur inférieure de deux BigInteger valeurs. |
| MinMagnitude(BigInteger, BigInteger) |
Compare deux valeurs au calcul, ce qui est inférieur. |
| ModPow(BigInteger, BigInteger, BigInteger) |
Effectue une division de module sur un nombre élevé à la puissance d’un autre nombre. |
| Multiply(BigInteger, BigInteger) |
Retourne le produit de deux BigInteger valeurs. |
| Negate(BigInteger) |
Annule une valeur spécifiée BigInteger . |
| Parse(ReadOnlySpan<Byte>, IFormatProvider) |
Représente un entier signé arbitrairement grand. |
| Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider) |
Représente un entier signé arbitrairement grand. |
| Parse(ReadOnlySpan<Char>, IFormatProvider) |
Analyse une étendue de caractères en une valeur. |
| Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider) |
Convertit la représentation d’un nombre, contenue dans l’étendue de caractères en lecture seule spécifiée, dans un style spécifié en son BigInteger équivalent. |
| Parse(String, IFormatProvider) |
Convertit la représentation sous forme de chaîne d’un nombre dans un format spécifique à la culture spécifié en son BigInteger équivalent. |
| Parse(String, NumberStyles, IFormatProvider) |
Convertit la représentation sous forme de chaîne d’un nombre dans un style et un format spécifique à la culture spécifiés en son BigInteger équivalent. |
| Parse(String, NumberStyles) |
Convertit la représentation sous forme de chaîne d’un nombre dans un style spécifié en son BigInteger équivalent. |
| Parse(String) |
Convertit la représentation sous forme de chaîne d’un nombre en son BigInteger équivalent. |
| PopCount(BigInteger) |
Calcule le nombre de bits définis dans une valeur. |
| Pow(BigInteger, Int32) |
Déclenche une BigInteger valeur à la puissance d’une valeur spécifiée. |
| Remainder(BigInteger, BigInteger) |
Effectue une division entière sur deux BigInteger valeurs et retourne le reste. |
| RotateLeft(BigInteger, Int32) |
Fait pivoter une valeur à gauche d’une quantité donnée. |
| RotateRight(BigInteger, Int32) |
Fait pivoter une valeur à droite d’un montant donné. |
| Subtract(BigInteger, BigInteger) |
Soustrait une valeur d’une BigInteger autre et retourne le résultat. |
| ToByteArray() |
Convertit une BigInteger valeur en tableau d’octets. |
| ToByteArray(Boolean, Boolean) |
Retourne la valeur de ce BigInteger tableau d’octets en utilisant le plus petit nombre d’octets possible. Si la valeur est égale à zéro, retourne un tableau d’un octet dont l’élément est 0x00. |
| ToString() |
Convertit la valeur numérique de l’objet actuel BigInteger en sa représentation sous forme de chaîne équivalente. |
| ToString(IFormatProvider) |
Convertit la valeur numérique de l’objet actuel BigInteger en sa représentation sous forme de chaîne équivalente à l’aide des informations de mise en forme spécifiques à la culture spécifiées. |
| ToString(String, IFormatProvider) |
Convertit la valeur numérique de l’objet actuel BigInteger en sa représentation sous forme de chaîne équivalente à l’aide des informations de format spécifiques à la culture et au format spécifiés. |
| ToString(String) |
Convertit la valeur numérique de l’objet actuel BigInteger en sa représentation sous forme de chaîne équivalente à l’aide du format spécifié. |
| TrailingZeroCount(BigInteger) |
Calcule le nombre de zéros de fin dans une valeur. |
| TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>, IFormatProvider) |
Représente un entier signé arbitrairement grand. |
| TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider) |
Met en forme cette instance d’entier volumineux en une étendue de caractères. |
| TryParse(ReadOnlySpan<Byte>, BigInteger) |
Représente un entier signé arbitrairement grand. |
| TryParse(ReadOnlySpan<Byte>, IFormatProvider, BigInteger) |
Représente un entier signé arbitrairement grand. |
| TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, BigInteger) |
Représente un entier signé arbitrairement grand. |
| TryParse(ReadOnlySpan<Char>, BigInteger) |
Tente de convertir la représentation d’un nombre contenu dans l’étendue de caractères en lecture seule spécifiée, en son BigInteger équivalent, et retourne une valeur qui indique si la conversion a réussi. |
| TryParse(ReadOnlySpan<Char>, IFormatProvider, BigInteger) |
Tente d’analyser une étendue de caractères en une valeur. |
| TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, BigInteger) |
Tente de convertir la représentation sous forme de chaîne d’un nombre en son BigInteger équivalent et retourne une valeur qui indique si la conversion a réussi. |
| TryParse(String, BigInteger) |
Tente de convertir la représentation sous forme de chaîne d’un nombre en son BigInteger équivalent et retourne une valeur qui indique si la conversion a réussi. |
| TryParse(String, IFormatProvider, BigInteger) |
Tente d’analyser une chaîne en une valeur. |
| TryParse(String, NumberStyles, IFormatProvider, BigInteger) |
Tente de convertir la représentation sous forme de chaîne d’un nombre dans un style et un format spécifique à la culture spécifiés en son BigInteger équivalent, puis retourne une valeur qui indique si la conversion a réussi. |
| TryWriteBytes(Span<Byte>, Int32, Boolean, Boolean) |
Copie la valeur de ce BigInteger nombre d’octets à deux extrémités, en utilisant le plus petit nombre d’octets possible. Si la valeur est égale à zéro, génère un octet dont l’élément est 0x00. |
Opérateurs
| Nom | Description |
|---|---|
| Addition(BigInteger, BigInteger) |
Ajoute les valeurs de deux objets spécifiés BigInteger . |
| BitwiseAnd(BigInteger, BigInteger) |
Effectue une opération au niveau |
| BitwiseOr(BigInteger, BigInteger) |
Effectue une opération au niveau |
| Decrement(BigInteger) |
Décrémente une BigInteger valeur par 1. |
| Division(BigInteger, BigInteger) |
Divise une valeur spécifiée BigInteger par une autre valeur spécifiée BigInteger à l’aide de la division entière. |
| Equality(BigInteger, BigInteger) |
Retourne une valeur qui indique si les valeurs de deux BigInteger objets sont égales. |
| Equality(BigInteger, Int64) |
Retourne une valeur qui indique si une BigInteger valeur et une valeur entière longue signée sont égales. |
| Equality(BigInteger, UInt64) |
Retourne une valeur qui indique si une BigInteger valeur et une valeur entière longue non signée sont égales. |
| Equality(Int64, BigInteger) |
Retourne une valeur qui indique si une valeur entière longue signée et une BigInteger valeur sont égales. |
| Equality(UInt64, BigInteger) |
Retourne une valeur qui indique si une valeur entière longue non signée et une BigInteger valeur sont égales. |
| ExclusiveOr(BigInteger, BigInteger) |
Effectue une opération exclusive |
| Explicit(BFloat16 to BigInteger) |
Représente un entier signé arbitrairement grand. |
| Explicit(BigInteger to BFloat16) |
Représente un entier signé arbitrairement grand. |
| Explicit(BigInteger to Byte) |
Définit une conversion explicite d’un BigInteger objet en valeur d’octet non signée. |
| Explicit(BigInteger to Char) |
Convertit explicitement un entier volumineux en valeur Char . |
| Explicit(BigInteger to Decimal) |
Définit une conversion explicite d’un BigInteger objet en valeur Decimal . |
| Explicit(BigInteger to Double) |
Définit une conversion explicite d’un BigInteger objet en valeur Double . |
| Explicit(BigInteger to Half) |
Convertit explicitement un entier volumineux en valeur Half . |
| Explicit(BigInteger to Int128) |
Convertit explicitement un entier volumineux en valeur Int128 . |
| Explicit(BigInteger to Int16) |
Définit une conversion explicite d’un BigInteger objet en valeur entière signée 16 bits. |
| Explicit(BigInteger to Int32) |
Définit une conversion explicite d’un BigInteger objet en valeur entière signée 32 bits. |
| Explicit(BigInteger to Int64) |
Définit une conversion explicite d’un BigInteger objet en valeur entière signée 64 bits. |
| Explicit(BigInteger to IntPtr) |
Convertit explicitement un entier volumineux en valeur IntPtr . |
| Explicit(BigInteger to SByte) |
Définit une conversion explicite d’un BigInteger objet en valeur 8 bits signée. Cette API n’est pas conforme CLS. L’alternative conforme est Int16. |
| Explicit(BigInteger to Single) |
Définit une conversion explicite d’un BigInteger objet en une valeur à virgule flottante simple précision. |
| Explicit(BigInteger to UInt128) |
Convertit explicitement un entier volumineux en valeur UInt128 . |
| Explicit(BigInteger to UInt16) |
Définit une conversion explicite d’un BigInteger objet en une valeur entière 16 bits non signée. Cette API n’est pas conforme CLS. L’alternative conforme est Int32. |
| Explicit(BigInteger to UInt32) |
Définit une conversion explicite d’un BigInteger objet en une valeur entière 32 bits non signée. Cette API n’est pas conforme CLS. L’alternative conforme est Int64. |
| Explicit(BigInteger to UInt64) |
Définit une conversion explicite d’un BigInteger objet en une valeur entière 64 bits non signée. Cette API n’est pas conforme CLS. L’alternative conforme est Double. |
| Explicit(BigInteger to UIntPtr) |
Convertit explicitement un entier volumineux en valeur UIntPtr . |
| Explicit(Complex to BigInteger) |
Convertit explicitement une Complex valeur en entier volumineux. |
| Explicit(Decimal to BigInteger) |
Définit une conversion explicite d’un Decimal objet en valeur BigInteger . |
| Explicit(Double to BigInteger) |
Définit une conversion explicite d’une Double valeur en BigInteger valeur. |
| Explicit(Half to BigInteger) |
Convertit explicitement une Half valeur en entier volumineux. |
| Explicit(Single to BigInteger) |
Définit une conversion explicite d’une Single valeur en BigInteger valeur. |
| GreaterThan(BigInteger, BigInteger) |
Retourne une valeur qui indique si une BigInteger valeur est supérieure à une autre BigInteger valeur. |
| GreaterThan(BigInteger, Int64) |
Retourne une valeur qui indique si une BigInteger valeur entière signée 64 bits est supérieure. |
| GreaterThan(BigInteger, UInt64) |
Retourne une valeur qui indique si une BigInteger valeur est supérieure à un entier non signé 64 bits. |
| GreaterThan(Int64, BigInteger) |
Retourne une valeur qui indique si un entier signé 64 bits est supérieur à une BigInteger valeur. |
| GreaterThan(UInt64, BigInteger) |
Retourne une valeur qui indique si une BigInteger valeur est supérieure à un entier non signé 64 bits. |
| GreaterThanOrEqual(BigInteger, BigInteger) |
Retourne une valeur qui indique si une BigInteger valeur est supérieure ou égale à une autre BigInteger valeur. |
| GreaterThanOrEqual(BigInteger, Int64) |
Retourne une valeur qui indique si une BigInteger valeur est supérieure ou égale à une valeur entière signée 64 bits. |
| GreaterThanOrEqual(BigInteger, UInt64) |
Retourne une valeur qui indique si une BigInteger valeur est supérieure ou égale à une valeur entière non signée 64 bits. |
| GreaterThanOrEqual(Int64, BigInteger) |
Retourne une valeur qui indique si un entier signé 64 bits est supérieur ou égal à une BigInteger valeur. |
| GreaterThanOrEqual(UInt64, BigInteger) |
Retourne une valeur qui indique si un entier non signé 64 bits est supérieur ou égal à une BigInteger valeur. |
| Implicit(Byte to BigInteger) |
Définit une conversion implicite d’un octet non signé en valeur BigInteger . |
| Implicit(Char to BigInteger) |
Convertit implicitement une Char valeur en entier volumineux. |
| Implicit(Int128 to BigInteger) |
Convertit implicitement une Int128 valeur en entier volumineux. |
| Implicit(Int16 to BigInteger) |
Définit une conversion implicite d’un entier 16 bits signé en valeur BigInteger . |
| Implicit(Int32 to BigInteger) |
Définit une conversion implicite d’un entier 32 bits signé en valeur BigInteger . |
| Implicit(Int64 to BigInteger) |
Définit une conversion implicite d’un entier 64 bits signé en valeur BigInteger . |
| Implicit(IntPtr to BigInteger) |
Convertit implicitement une IntPtr valeur en entier volumineux. |
| Implicit(SByte to BigInteger) |
Définit une conversion implicite d’un entier signé 8 bits en valeur BigInteger . Cette API n’est pas conforme CLS. L’alternative conforme est BigInteger(Int32). |
| Implicit(UInt128 to BigInteger) |
Convertit implicitement une UInt128 valeur en entier volumineux. |
| Implicit(UInt16 to BigInteger) |
Définit une conversion implicite d’un entier non signé 16 bits en valeur BigInteger . Cette API n’est pas conforme CLS. L’alternative conforme est Implicit(Int32 to BigInteger). |
| Implicit(UInt32 to BigInteger) |
Définit une conversion implicite d’un entier non signé 32 bits en valeur BigInteger . Cette API n’est pas conforme CLS. L’alternative conforme est Implicit(Int64 to BigInteger). |
| Implicit(UInt64 to BigInteger) |
Définit une conversion implicite d’un entier non signé 64 bits en valeur BigInteger . Cette API n’est pas conforme CLS. L’alternative conforme est Double. |
| Implicit(UIntPtr to BigInteger) |
Convertit implicitement une UIntPtr valeur en entier volumineux. |
| Increment(BigInteger) |
Incrémente une BigInteger valeur de 1. |
| Inequality(BigInteger, BigInteger) |
Retourne une valeur qui indique si deux BigInteger objets ont des valeurs différentes. |
| Inequality(BigInteger, Int64) |
Retourne une valeur qui indique si une BigInteger valeur et un entier signé 64 bits ne sont pas égaux. |
| Inequality(BigInteger, UInt64) |
Retourne une valeur qui indique si une BigInteger valeur et un entier non signé 64 bits ne sont pas égaux. |
| Inequality(Int64, BigInteger) |
Retourne une valeur qui indique si un entier signé 64 bits et une BigInteger valeur ne sont pas égales. |
| Inequality(UInt64, BigInteger) |
Retourne une valeur qui indique si un entier non signé 64 bits et une BigInteger valeur ne sont pas égales. |
| LeftShift(BigInteger, Int32) |
Déplace une BigInteger valeur d’un nombre spécifié de bits vers la gauche. |
| LessThan(BigInteger, BigInteger) |
Retourne une valeur qui indique si une BigInteger valeur est inférieure à une autre BigInteger valeur. |
| LessThan(BigInteger, Int64) |
Retourne une valeur qui indique si une BigInteger valeur est inférieure à un entier signé 64 bits. |
| LessThan(BigInteger, UInt64) |
Retourne une valeur qui indique si une BigInteger valeur est inférieure à un entier non signé 64 bits. |
| LessThan(Int64, BigInteger) |
Retourne une valeur qui indique si un entier signé 64 bits est inférieur à une BigInteger valeur. |
| LessThan(UInt64, BigInteger) |
Retourne une valeur qui indique si un entier non signé 64 bits est inférieur à une BigInteger valeur. |
| LessThanOrEqual(BigInteger, BigInteger) |
Retourne une valeur qui indique si une BigInteger valeur est inférieure ou égale à une autre BigInteger valeur. |
| LessThanOrEqual(BigInteger, Int64) |
Retourne une valeur qui indique si une BigInteger valeur est inférieure ou égale à un entier signé 64 bits. |
| LessThanOrEqual(BigInteger, UInt64) |
Retourne une valeur qui indique si une BigInteger valeur est inférieure ou égale à un entier non signé 64 bits. |
| LessThanOrEqual(Int64, BigInteger) |
Retourne une valeur qui indique si un entier signé 64 bits est inférieur ou égal à une BigInteger valeur. |
| LessThanOrEqual(UInt64, BigInteger) |
Retourne une valeur qui indique si un entier non signé 64 bits est inférieur ou égal à une BigInteger valeur. |
| Modulus(BigInteger, BigInteger) |
Retourne le reste qui résulte de la division avec deux valeurs spécifiées BigInteger . |
| Multiply(BigInteger, BigInteger) |
Multiplie deux valeurs spécifiées BigInteger . |
| OnesComplement(BigInteger) |
Retourne le complément du bit d’une BigInteger valeur. |
| RightShift(BigInteger, Int32) |
Déplace une BigInteger valeur d’un nombre spécifié de bits vers la droite. |
| Subtraction(BigInteger, BigInteger) |
Soustrait une BigInteger valeur d’une autre BigInteger valeur. |
| UnaryNegation(BigInteger) |
Annule une valeur BigInteger spécifiée. |
| UnaryPlus(BigInteger) |
Retourne la valeur de l’opérande BigInteger . (Le signe de l’opérande est inchangé.) |
| UnsignedRightShift(BigInteger, Int32) |
Déplace une valeur à droite d’un montant donné. |
Implémentations d’interfaces explicites
| Nom | Description |
|---|---|
| IAdditiveIdentity<BigInteger,BigInteger>.AdditiveIdentity |
Obtient l’identité additive du type actuel. |
| IBinaryInteger<BigInteger>.GetByteCount() |
Obtient le nombre d’octets qui seront écrits dans le cadre de TryWriteLittleEndian(Span<Byte>, Int32). |
| IBinaryInteger<BigInteger>.GetShortestBitLength() |
Obtient la longueur, en bits, de la représentation complète des deux plus courtes de la valeur actuelle. |
| IBinaryInteger<BigInteger>.Log10(BigInteger) |
Représente un entier signé arbitrairement grand. |
| IBinaryInteger<BigInteger>.TryReadBigEndian(ReadOnlySpan<Byte>, Boolean, BigInteger) |
Représente un entier signé arbitrairement grand. |
| IBinaryInteger<BigInteger>.TryReadLittleEndian(ReadOnlySpan<Byte>, Boolean, BigInteger) |
Représente un entier signé arbitrairement grand. |
| IBinaryInteger<BigInteger>.TryWriteBigEndian(Span<Byte>, Int32) |
Tente d’écrire la valeur actuelle, au format big-endian, dans une étendue donnée. |
| IBinaryInteger<BigInteger>.TryWriteLittleEndian(Span<Byte>, Int32) |
Tente d’écrire la valeur actuelle, au format little-endian, dans une étendue donnée. |
| IBinaryNumber<BigInteger>.AllBitsSet |
Obtient une instance du type binaire dans laquelle tous les bits sont définis. |
| IComparable.CompareTo(Object) |
Compare cette instance à un objet spécifié et retourne un entier qui indique si la valeur de cette instance est inférieure, égale ou supérieure à la valeur de l’objet spécifié. |
| IMultiplicativeIdentity<BigInteger,BigInteger>.MultiplicativeIdentity |
Obtient l’identité multiplicative du type actuel. |
| INumber<BigInteger>.MaxNumber(BigInteger, BigInteger) |
Compare deux valeurs au calcul qui est supérieure et retourne l’autre valeur si une entrée est |
| INumber<BigInteger>.MinNumber(BigInteger, BigInteger) |
Compare deux valeurs au calcul, ce qui est inférieur et retourne l’autre valeur si une entrée est |
| INumber<BigInteger>.Sign(BigInteger) |
Calcule le signe d’une valeur. |
| INumberBase<BigInteger>.IsCanonical(BigInteger) |
Détermine si une valeur se trouve dans sa représentation canonique. |
| INumberBase<BigInteger>.IsComplexNumber(BigInteger) |
Détermine si une valeur représente un nombre complexe. |
| INumberBase<BigInteger>.IsFinite(BigInteger) |
Détermine si une valeur est finie. |
| INumberBase<BigInteger>.IsImaginaryNumber(BigInteger) |
Détermine si une valeur représente un nombre imaginaire pur. |
| INumberBase<BigInteger>.IsInfinity(BigInteger) |
Détermine si une valeur est infinie. |
| INumberBase<BigInteger>.IsInteger(BigInteger) |
Détermine si une valeur représente un nombre intégral. |
| INumberBase<BigInteger>.IsNaN(BigInteger) |
Détermine si une valeur est NaN. |
| INumberBase<BigInteger>.IsNegativeInfinity(BigInteger) |
Détermine si une valeur est l’infini négatif. |
| INumberBase<BigInteger>.IsNormal(BigInteger) |
Détermine si une valeur est normale. |
| INumberBase<BigInteger>.IsPositiveInfinity(BigInteger) |
Détermine si une valeur est l’infini positif. |
| INumberBase<BigInteger>.IsRealNumber(BigInteger) |
Détermine si une valeur représente un nombre réel. |
| INumberBase<BigInteger>.IsSubnormal(BigInteger) |
Détermine si une valeur est subnormale. |
| INumberBase<BigInteger>.IsZero(BigInteger) |
Détermine si une valeur est égale à zéro. |
| INumberBase<BigInteger>.MaxMagnitudeNumber(BigInteger, BigInteger) |
Compare deux valeurs au calcul qui a la plus grande magnitude et retourne l’autre valeur si une entrée est |
| INumberBase<BigInteger>.MinMagnitudeNumber(BigInteger, BigInteger) |
Compare deux valeurs au calcul dont la magnitude est inférieure et retourne l’autre valeur si une entrée est |
| INumberBase<BigInteger>.MultiplyAddEstimate(BigInteger, BigInteger, BigInteger) |
Calcule une estimation de ( |
| INumberBase<BigInteger>.Radix |
Obtient le radix, ou la base, pour le type. |
| INumberBase<BigInteger>.TryConvertFromChecked<TOther>(TOther, BigInteger) |
Représente un entier signé arbitrairement grand. |
| INumberBase<BigInteger>.TryConvertFromSaturating<TOther>(TOther, BigInteger) |
Représente un entier signé arbitrairement grand. |
| INumberBase<BigInteger>.TryConvertFromTruncating<TOther>(TOther, BigInteger) |
Représente un entier signé arbitrairement grand. |
| INumberBase<BigInteger>.TryConvertToChecked<TOther>(BigInteger, TOther) |
Tente de convertir une instance du type actuel en un autre type, lève une exception de dépassement de capacité pour toutes les valeurs qui se trouvent en dehors de la plage représentée du type actuel. |
| INumberBase<BigInteger>.TryConvertToSaturating<TOther>(BigInteger, TOther) |
Tente de convertir une instance du type actuel en un autre type, en saturant toutes les valeurs qui se trouvent en dehors de la plage représentée du type actuel. |
| INumberBase<BigInteger>.TryConvertToTruncating<TOther>(BigInteger, TOther) |
Tente de convertir une instance du type actuel en un autre type, en tronqué toutes les valeurs qui se trouvent en dehors de la plage représentée du type actuel. |
| ISignedNumber<BigInteger>.NegativeOne |
Obtient la valeur |