Compartir vía


NFloat.MaxNumber(NFloat, NFloat) Método

Definición

Compara dos valores para calcular que es mayor y devolver el otro valor si una entrada es 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

Parámetros

x
NFloat

Valor que se va a comparar con y.

y
NFloat

Valor que se va a comparar con x.

Devoluciones

x es si es mayor que y; de lo contrario, yes .

Implementaciones

Comentarios

Para IFloatingPoint<TSelf> este método coincide con la función IEEE 754:2019 maximumNumber . Esto requiere que las entradas NaN no se propaguen al autor de la llamada y -0.0 que se traten como inferiores +0.0a .

Se aplica a