NFloat.Max(NFloat, NFloat) Methode

Definition

Vergleicht zwei Werte mit der Berechnung, die 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

Der wert, mit ydem verglichen werden soll.

y
NFloat

Der wert, mit xdem verglichen werden soll.

Gibt zurück

x wenn sie größer als y; andernfalls y.

Implementiert

Hinweise

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

Gilt für: