INumberBase<TSelf>.MaxMagnitudeNumber(TSelf, TSelf) Metodo

Definizione

Confronta due valori con il calcolo che ha la grandezza maggiore e restituisce l'altro valore se un input è NaN.

public:
 static TSelf MaxMagnitudeNumber(TSelf x, TSelf y);
public static abstract TSelf MaxMagnitudeNumber (TSelf x, TSelf y);
static member MaxMagnitudeNumber : 'Self * 'Self -> 'Self
Public Shared Function MaxMagnitudeNumber (x As TSelf, y As TSelf) As TSelf

Parametri

x
TSelf

Valore da confrontare con y.

y
TSelf

Valore da confrontare con x.

Restituisce

TSelf

x se ha una grandezza maggiore di y; in caso contrario, y.

Commenti

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

Si applica a