NFloat.MaxNumber(NFloat, NFloat) メソッド

定義

2 つの値を比較して、より大きいを計算し、入力が の場合は NaNもう一方の値を返します。

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

パラメーター

x
NFloat

y比較する値。

y
NFloat

x比較する値。

戻り値

x より大きい y場合は 。それ以外の場合 yは 。

実装

注釈

このメソッドでは IFloatingPoint<TSelf> 、IEEE 754:2019 maximumNumber 関数と一致します。 これには、NaN 入力を呼び出し -0.0 元に反映せず、 より +0.0小さいとして扱う必要があります。

適用対象