Bagikan melalui


UInt128.Clamp(UInt128, UInt128, UInt128) Metode

Definisi

Menjepit nilai ke nilai minimum dan maksimum inklusif.

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

Nilai untuk menjepit.

min
UInt128

Minimum inklusif yang value harus menjepit.

max
UInt128

Maksimum inklusif yang value harus menjepit.

Mengembalikan

Hasil penjepitan value ke rentang min inklusif dan max.

Penerapan

Berlaku untuk