NFloat.Min(NFloat, NFloat) Methode

Definition

Vergleicht zwei Werte mit der Berechnung, die kleiner ist.

public:
 static System::Runtime::InteropServices::NFloat Min(System::Runtime::InteropServices::NFloat x, System::Runtime::InteropServices::NFloat y) = System::Numerics::INumber<System::Runtime::InteropServices::NFloat>::Min;
public static System.Runtime.InteropServices.NFloat Min (System.Runtime.InteropServices.NFloat x, System.Runtime.InteropServices.NFloat y);
static member Min : System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat -> System.Runtime.InteropServices.NFloat
Public Shared Function Min (x As NFloat, y As NFloat) As NFloat

Parameter

x
NFloat

Der mit zu vergleichende yWert.

y
NFloat

Der mit zu vergleichende xWert.

Gibt zurück

x , wenn sie kleiner als yist, yandernfalls .

Implementiert

Hinweise

Für IFloatingPoint<TSelf>entspricht diese Methode der IEEE 754:2019-Funktion minimum . Dazu müssen NaN-Eingaben zurück an den Aufrufer weitergegeben und -0.0 als kleiner +0.0als behandelt werden.

Gilt für: