BigInteger.Clamp(BigInteger, BigInteger, BigInteger) Metoda

Definice

Uchytá hodnotu na inkluzivní minimální a maximální hodnotu.

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

Parametry

value
BigInteger

Hodnota, která se uchytá.

min
BigInteger

Inkluzivní minimum, na které value by mělo upnout.

max
BigInteger

Inkluzivní maximum, na které value by mělo upnout.

Návraty

Výsledek upnutí value na inkluzivní rozsah min a max.

Implementuje

Platí pro