Single.Max(Single, Single) Método

Definição

Compara dois valores para calcular qual é maior.

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

Parâmetros

x
Single

O valor a comparar com y.

y
Single

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