UInt128.Clamp(UInt128, UInt128, UInt128) Methode

Definition

Klemmt einen Wert auf einen inklusiven Minimal- und Maximalwert.

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

Parameter

value
UInt128

Der zu klemmende Wert.

min
UInt128

Das inklusive Minimum, an das value sich klammern soll.

max
UInt128

Das inklusive Maximum, auf das value sich klammern soll.

Gibt zurück

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

Implementiert

Gilt für: