NFloat.MaxNumber(NFloat, NFloat) Méthode

Définition

Compare deux valeurs au calcul qui est supérieure et retourne l’autre valeur si une entrée est NaN.

public:
 static System::Runtime::InteropServices::NFloat MaxNumber(System::Runtime::InteropServices::NFloat x, System::Runtime::InteropServices::NFloat y) = System::Numerics::INumber<System::Runtime::InteropServices::NFloat>::MaxNumber;
public static System.Runtime.InteropServices.NFloat MaxNumber(System.Runtime.InteropServices.NFloat x, System.Runtime.InteropServices.NFloat y);
static member MaxNumber : System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat -> System.Runtime.InteropServices.NFloat
Public Shared Function MaxNumber (x As NFloat, y As NFloat) As NFloat

Paramètres

x
NFloat

Valeur à comparer avec y.

y
NFloat

Valeur à comparer avec x.

Retours

x s’il est supérieur yà ; sinon, y.

Implémente

Remarques

Pour IFloatingPoint<TSelf> cette méthode correspond à la fonction IEEE 754:2019 maximumNumber . Cela nécessite que les entrées NaN ne soient pas propagées à l’appelant et qu’elles -0.0 soient traitées comme inférieures +0.0à .

S’applique à