Compartir a través de


Single.MinMagnitude(Single, Single) Método

Definición

Compara dos valores con el proceso, que es 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

Valor que se va a comparar con y.

y
Single

Valor que se va a comparar con x.

Devoluciones

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

Implementaciones

Comentarios

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'.

Se aplica a