UInt16.Max(UInt16, UInt16) Méthode

Définition

Compare deux valeurs au calcul, ce qui est supérieur.

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

Paramètres

x
UInt16

Valeur à comparer avec y.

y
UInt16

Valeur à comparer avec x.

Retours

x s’il est supérieur yà ; sinon, y.

Implémente

Remarques

Pour IFloatingPoint<TSelf> cette méthode correspond à la fonction IEEE 754:2019 maximum . Cela nécessite que les entrées NaN soient propagées à l’appelant et qu’elles -0.0 soient traitées comme inférieures +0.0à .

S’applique à