NFloat.MaxMagnitude(NFloat, NFloat) Yöntem

Tanım

İki değeri daha büyük olan işlemle karşılaştırır.

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

Parametreler

x
NFloat

ile ykarşılaştıracak değer.

y
NFloat

ile xkarşılaştıracak değer.

Döndürülenler

x değerinden ybüyükse; değilse, y.

Uygulamalar

Açıklamalar

için IFloatingPointIeee754<TSelf>bu yöntem, IEEE 754:2019 maximumMagnitude işleviyle eşleşir. Bunun için NaN girişlerinin çağırana geri yayılmaması ve -0.0 değerinden +0.0küçük olarak işlenmesi gerekir.

Şunlara uygulanır