NFloat.MaxNumber(NFloat, NFloat) Método

Definição

Compara dois valores para calcular qual é maior e devolve 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

O valor a comparar com y.

y
NFloat

O valor a comparar com x.

Devoluções

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

Implementações

Observações

Para IFloatingPoint<TSelf> este método corresponde à função IEEE 754:2019 maximumNumber . Isto exige que as entradas NaN não sejam propagadas de volta ao chamador e que -0.0 sejam tratadas como inferiores a +0.0.

Aplica-se a