NFloat.MinNumber(NFloat, NFloat) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Compara dois valores para calcular qual é menor e devolve o outro valor se uma entrada for NaN.
public:
static System::Runtime::InteropServices::NFloat MinNumber(System::Runtime::InteropServices::NFloat x, System::Runtime::InteropServices::NFloat y) = System::Numerics::INumber<System::Runtime::InteropServices::NFloat>::MinNumber;
public static System.Runtime.InteropServices.NFloat MinNumber(System.Runtime.InteropServices.NFloat x, System.Runtime.InteropServices.NFloat y);
static member MinNumber : System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat -> System.Runtime.InteropServices.NFloat
Public Shared Function MinNumber (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 menor que y; caso contrário, y.
Implementações
Observações
Para IFloatingPoint<TSelf> este método corresponde à função IEEE 754:2019 minimumNumber . 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.