NFloat.MaxMagnitudeNumber(NFloat, NFloat) Metodo

Definizione

Confronta due valori con il calcolo che ha la grandezza maggiore e restituisce l'altro valore se un input è NaN.

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

Parametri

x
NFloat

Valore da confrontare con y.

y
NFloat

Valore da confrontare con x.

Restituisce

x se è maggiore di y; in caso contrario, y.

Implementazioni

Commenti

Per IFloatingPointIeee754<TSelf> questo metodo corrisponde alla funzione IEEE 754:2019 maximumMagnitudeNumber . Ciò richiede che gli input NaN non vengano propagati nuovamente al chiamante e per -0.0 essere considerati come minori di +0.0.

Si applica a