NFloat.Max(NFloat, NFloat) Methode

Definition

Vergleicht zwei Werte, um zu berechnen, was größer ist.

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

Parameter

x
NFloat
y
NFloat

Gibt zurück

NFloat

xwenn es größer ist als yy; andernfalls .

Implementiert

Hinweise

Für IFloatingPoint<TSelf>diese Methode entspricht die IEEE 754:2019-Funktion maximum . Dies erfordert, dass NaN-Eingaben wieder an den Anrufer verteilt werden und -0.0 als kleiner +0.0behandelt werden sollen.

Gilt für