Single.MinMagnitude(Single, Single) 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.
public:
static float MinMagnitude(float x, float y) = System::Numerics::INumberBase<float>::MinMagnitude;
public static float MinMagnitude(float x, float y);
static member MinMagnitude : single * single -> single
Public Shared Function MinMagnitude (x As Single, y As Single) As Single
Parâmetros
- x
- Single
O valor a comparar com y.
- y
- Single
O valor a comparar com x.
Devoluções
x se for menor que y; caso contrário, y.
Implementações
Observações
Para <ver cref="T:System.Numerics.IFloatingPointIeee7541> this method matches the IEEE 754:2019 minimumMagnitude-0.0function. This requires NaN inputs to not be propagated back to the caller and forto be treated as less than+0.0'.