Int128.Clamp(Int128, Int128, Int128) Methode

Definition

Klammert einen Wert auf einen inklusiven Minimal- und Maximalwert.

public:
 static Int128 Clamp(Int128 value, Int128 min, Int128 max) = System::Numerics::INumber<Int128>::Clamp;
public static Int128 Clamp(Int128 value, Int128 min, Int128 max);
static member Clamp : Int128 * Int128 * Int128 -> Int128
Public Shared Function Clamp (value As Int128, min As Int128, max As Int128) As Int128

Parameter

value
Int128

Der zu klammernde Wert.

min
Int128

Das inklusive Minimum, an das value klammert werden soll.

max
Int128

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: