Język

UInt16.INumber<UInt16>.MaxNumber(UInt16, UInt16) Metoda

Definicja

Porównuje dwie wartości z obliczeniami, które są większe i zwracają drugą wartość, jeśli dane wejściowe to NaN.

 static System::UInt16 System.Numerics.INumber<System.UInt16>.MaxNumber(System::UInt16 x, System::UInt16 y) = System::Numerics::INumber<System::UInt16>::MaxNumber;
static ushort INumber<ushort>.MaxNumber(ushort x, ushort y);
static member System.Numerics.INumber<System.UInt16>.MaxNumber : uint16 * uint16 -> uint16
 Shared Function MaxNumber (x As UShort, y As UShort) As UShort Implements INumber(Of UShort).MaxNumber

Parametry

x
UInt16

Wartość do porównania z y.

y
UInt16

Wartość do porównania z x.

Zwraca

x jeśli jest większa niż y; w przeciwnym razie y.

Implementuje

Dotyczy