NFloat.ClampNative(NFloat, NFloat, NFloat) Méthode

Définition

Limite une valeur à une valeur minimale et maximale inclusive à l’aide d’un comportement spécifique à la plateforme pour NaN et NegativeZero.

public:
 static System::Runtime::InteropServices::NFloat ClampNative(System::Runtime::InteropServices::NFloat value, System::Runtime::InteropServices::NFloat min, System::Runtime::InteropServices::NFloat max) = System::Numerics::INumber<System::Runtime::InteropServices::NFloat>::ClampNative;
public static System.Runtime.InteropServices.NFloat ClampNative(System.Runtime.InteropServices.NFloat value, System.Runtime.InteropServices.NFloat min, System.Runtime.InteropServices.NFloat max);
static member ClampNative : System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat -> System.Runtime.InteropServices.NFloat
Public Shared Function ClampNative (value As NFloat, min As NFloat, max As NFloat) As NFloat

Paramètres

value
NFloat

Valeur à limiter.

min
NFloat

Minimum inclusif auquel value il convient de serrer.

max
NFloat

Maximum inclusif auquel value il convient de serrer.

Retours

Résultat de la value pince à la plage inclusive de min et max.

Implémente

S’applique à