Int32.Max(Int32, Int32) Método

Definição

Compara dois valores para calcular qual é maior.

public:
 static int Max(int x, int y) = System::Numerics::INumber<int>::Max;
public static int Max(int x, int y);
static member Max : int * int -> int
Public Shared Function Max (x As Integer, y As Integer) As Integer

Parâmetros

x
Int32

O valor a comparar com y.

y
Int32

O valor a comparar com x.

Devoluções

x se for maior que y; caso contrário, y.

Implementações

Observações

Para IFloatingPoint<TSelf> este método corresponde à função IEEE 754:2019 maximum . Isto exige que as entradas NaN sejam propagadas de volta para o chamador e que -0.0 sejam tratadas como inferiores a +0.0.

Aplica-se a