Single.MinMagnitude(Single, Single) Metoda

Definicja

Porównuje dwie wartości do obliczeń, które są mniejsze.

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

Parametry

x
Single

Wartość, która ma być porównywana z wartością y.

y
Single

Wartość, która ma być porównywana z wartością x.

Zwraca

xjeśli jest mniejsza niż y; w przeciwnym razie . y

Implementuje

Uwagi

Aby uzyskać informacje<, zobacz 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".

Dotyczy