BigInteger.MaxMagnitude(BigInteger, BigInteger) Metoda

Definice

Porovná dvě hodnoty pro výpočet, který je větší.

public:
 static System::Numerics::BigInteger MaxMagnitude(System::Numerics::BigInteger x, System::Numerics::BigInteger y) = System::Numerics::INumberBase<System::Numerics::BigInteger>::MaxMagnitude;
public static System.Numerics.BigInteger MaxMagnitude (System.Numerics.BigInteger x, System.Numerics.BigInteger y);
static member MaxMagnitude : System.Numerics.BigInteger * System.Numerics.BigInteger -> System.Numerics.BigInteger
Public Shared Function MaxMagnitude (x As BigInteger, y As BigInteger) As BigInteger

Parametry

x
BigInteger

Hodnota, která se má porovnat s y.

y
BigInteger

Hodnota, která se má porovnat s x.

Návraty

x pokud je větší než y, jinak hodnota y.

Implementuje

Poznámky

Pro IFloatingPointIeee754<TSelf> tuto metodu odpovídá funkci IEEE 754:2019 maximumMagnitude . To vyžaduje, aby se vstupy NaN šířily zpět do volajícího a aby byly považovány za -0.0 menší než +0.0.

Platí pro