NFloat.MinNumber(NFloat, NFloat) Metodo

Definizione

Confronta due valori per calcolare che è minore e restituisce l'altro valore se un input è NaN.

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

Parametri

x
NFloat

Valore da confrontare con y.

y
NFloat

Valore da confrontare con x.

Restituisce

x se è minore di y; in caso contrario, y.

Implementazioni

Commenti

Per IFloatingPoint<TSelf> questo metodo corrisponde alla funzione IEEE 754:2019 minimumNumber . Ciò richiede che gli input NaN non vengano propagati nuovamente al chiamante e per -0.0 essere trattati come meno di +0.0.

Si applica a