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未満として扱われる必要があります。

適用対象