Share via


NFloat.MaxNumber(NFloat, NFloat) Metodo

Definizione

Confronta due valori con il calcolo che è maggiore e restituisce l'altro valore se un input è 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

Parametri

x
NFloat
y
NFloat

Restituisce

NFloat

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

Implementazioni

Commenti

Per IFloatingPoint<TSelf> questo metodo corrisponde alla funzione IEEE 754:2019 maximumNumber . 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