UInt64.Clamp(UInt64, UInt64, UInt64) Méthode
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.
Limite une valeur à une valeur minimale et maximale inclusive.
public:
static System::UInt64 Clamp(System::UInt64 value, System::UInt64 min, System::UInt64 max) = System::Numerics::INumber<System::UInt64>::Clamp;
public static ulong Clamp(ulong value, ulong min, ulong max);
static member Clamp : uint64 * uint64 * uint64 -> uint64
Public Shared Function Clamp (value As ULong, min As ULong, max As ULong) As ULong
Paramètres
- value
- UInt64
Valeur à limiter.
- min
- UInt64
Minimum inclusif auquel value il convient de serrer.
- max
- UInt64
Maximum inclusif auquel value il convient de serrer.
Retours
Résultat de la value pince à la plage inclusive de min et max.