NFloat.Max(NFloat, NFloat) Método

Definição

Compara dois valores com a computação, que é maior.

public:
 static System::Runtime::InteropServices::NFloat Max(System::Runtime::InteropServices::NFloat x, System::Runtime::InteropServices::NFloat y) = System::Numerics::INumber<System::Runtime::InteropServices::NFloat>::Max;
public static System.Runtime.InteropServices.NFloat Max (System.Runtime.InteropServices.NFloat x, System.Runtime.InteropServices.NFloat y);
static member Max : System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat -> System.Runtime.InteropServices.NFloat
Public Shared Function Max (x As NFloat, y As NFloat) As NFloat

Parâmetros

x
NFloat
y
NFloat

Retornos

NFloat

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

Implementações

Comentários

Para IFloatingPoint<TSelf>, esse método corresponde à função IEEE 754:2019 maximum . Isso requer que as entradas naN sejam propagadas de volta para o chamador e para -0.0 serem tratadas como menores que +0.0.

Aplica-se a