Single.MinMagnitude(Single, Single) Metoda

Definice

Porovná dvě hodnoty s výpočtem, který je menší.

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

Hodnota, která se má porovnat s y.

y
Single

Hodnota, která se má porovnat s x.

Návraty

x pokud je menší než y, jinak hodnota y.

Implementuje

Poznámky

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

Platí pro