Half.MaxMagnitude(Half, Half) Metodo

Definizione

Confronta due valori per calcolare che è maggiore.

public:
 static Half MaxMagnitude(Half x, Half y) = System::Numerics::INumberBase<Half>::MaxMagnitude;
public static Half MaxMagnitude (Half x, Half y);
static member MaxMagnitude : Half * Half -> Half
Public Shared Function MaxMagnitude (x As Half, y As Half) As Half

Parametri

x
Half

Valore da confrontare con y.

y
Half

Valore da confrontare con x.

Restituisce

x se è maggiore di y; in caso contrario, y.

Implementazioni

Commenti

Per IFloatingPointIeee754<TSelf> questo metodo corrisponde alla funzione IEEE 754:2019 maximumMagnitude . Ciò richiede che gli input NaN non vengano propagati nuovamente al chiamante e per -0.0 essere trattati come meno di +0.0.

Si applica a