BigInteger.Clamp(BigInteger, BigInteger, BigInteger) Metoda

Definice

Upne hodnotu na minimální a maximální hodnotu včetně.

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 pro upnutí.

min
BigInteger

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

max
BigInteger

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

Návraty

Výsledek upnutí value na inkluzivní rozsah a minmax.

Implementuje

Platí pro