BigInteger.Clamp(BigInteger, BigInteger, BigInteger) Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
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.