Leer en inglés

Compartir a través de


Single.MinMagnitude(Single, Single) Método

Definición

Compara dos valores con el proceso, que es menor.

C#
public static float MinMagnitude(float x, float y);

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

Producto Versiones
.NET 7, 8, 9, 10