Int16.INumber<Int16>.MaxNumber(Int16, Int16) 方法

定義

比較兩個值與計算,如果輸入為 NaN ,則會傳回另一個值。

 static short System.Numerics.INumber<System.Int16>.MaxNumber(short x, short y) = System::Numerics::INumber<short>::MaxNumber;
static short INumber<short>.MaxNumber (short x, short y);
static member System.Numerics.INumber<System.Int16>.MaxNumber : int16 * int16 -> int16
 Shared Function MaxNumber (x As Short, y As Short) As Short Implements INumber(Of Short).MaxNumber

參數

x
Int16

要與 y 比較的值。

y
Int16

要與 x 比較的值。

傳回

x 如果大於 ,則為 y ,否則為 y

實作

適用於