UInt128.Clamp(UInt128, UInt128, UInt128) Methode

Definition

Klammert 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 klammernde Wert.

min
UInt128

Das inklusive Minimum, an das value klammert werden soll.

max
UInt128

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: