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

定義

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

public:
 static System::UInt16 Max(System::UInt16 x, System::UInt16 y) = System::Numerics::INumber<System::UInt16>::Max;
public static ushort Max (ushort x, ushort y);
static member Max : uint16 * uint16 -> uint16
Public Shared Function Max (x As UShort, y As UShort) As UShort

パラメーター

x
UInt16

y比較する値。

y
UInt16

x比較する値。

戻り値

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

実装

注釈

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

適用対象