Int16.Max(Int16, Int16) メソッド

定義

2 つの値を比較して、より大きいコンピューティングを行います。

public:
 static short Max(short x, short y) = System::Numerics::INumber<short>::Max;
public static short Max (short x, short y);
static member Max : int16 * int16 -> int16
Public Shared Function Max (x As Short, y As Short) As Short

パラメーター

x
Int16

y比較する値。

y
Int16

x比較する値。

戻り値

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

実装

注釈

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

適用対象