NFloat.MaxMagnitude(NFloat, NFloat) Méthode

Définition

Compare deux valeurs au calcul, ce qui est supérieur.

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

Paramètres

x
NFloat

Valeur à comparer à y.

y
NFloat

Valeur à comparer à x.

Retours

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

Implémente

Remarques

Pour IFloatingPointIeee754<TSelf>, cette méthode correspond à la fonction IEEE 754 :2019 maximumMagnitude . 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 à