NFloat.MaxNumber(NFloat, NFloat) Método

Definição

Compara dois valores com a computação, que é maior e retorna o outro valor se uma entrada for 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
y
NFloat

Retornos

NFloat

x se for maior que y; caso contrário, y.

Implementações

Comentários

Para IFloatingPoint<TSelf> esse método, corresponde à função IEEE 754:2019 maximumNumber . Isso requer que as entradas naN não sejam propagadas de volta para o chamador e para -0.0 serem tratadas como menores que +0.0.

Aplica-se a