BigInteger.Clamp(BigInteger, BigInteger, BigInteger) Méthode
Définition
Important
Certaines informations concernent des produits en version préliminaire qui peuvent être considérablement modifiés avant leur sortie. Microsoft n’offre aucune garantie, expresse ou implicite, concernant les informations fournies ici.
Limite une valeur à une valeur minimale et maximale inclusive.
public:
static System::Numerics::BigInteger Clamp(System::Numerics::BigInteger value, System::Numerics::BigInteger min, System::Numerics::BigInteger max) = System::Numerics::INumber<System::Numerics::BigInteger>::Clamp;
public static System.Numerics.BigInteger Clamp(System.Numerics.BigInteger value, System.Numerics.BigInteger min, System.Numerics.BigInteger max);
static member Clamp : System.Numerics.BigInteger * System.Numerics.BigInteger * System.Numerics.BigInteger -> System.Numerics.BigInteger
Public Shared Function Clamp (value As BigInteger, min As BigInteger, max As BigInteger) As BigInteger
Paramètres
- value
- BigInteger
Valeur à serrer.
- min
- BigInteger
Minimum inclusif auquel value doit se serrer.
- max
- BigInteger
Maximum inclusif auquel value doit se serrer.
Retourne
Résultat de la fixation value à la plage inclusive de min et max.