NFloat.ClampNative(NFloat, NFloat, NFloat) Methode

Definition

Klammert einen Wert auf einen inklusiven Minimal- und Maximalwert unter Verwendung plattformspezifischer Verhaltensweisen für NaN und 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

Parameter

value
NFloat

Der zu klammernde Wert.

min
NFloat

Das inklusive Minimum, an das value klammert werden soll.

max
NFloat

Das inklusive Maximum, an das value geklemmt werden soll.

Gibt zurück

Das Ergebnis der Klammerung value an den inklusiven Bereich von min und max.

Implementiert

Gilt für: