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

定義

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

 static int System.Numerics.INumber<System.Int32>.MaxNumber(int x, int y) = System::Numerics::INumber<int>::MaxNumber;
static int INumber<int>.MaxNumber (int x, int y);
static member System.Numerics.INumber<System.Int32>.MaxNumber : int * int -> int
 Shared Function MaxNumber (x As Integer, y As Integer) As Integer Implements INumber(Of Integer).MaxNumber

參數

x
Int32

要與 y 比較的值。

y
Int32

要與 x 比較的值。

傳回

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

實作

適用於