Single.MinMagnitude(Single, Single) 方法

定義

比較兩個值與比較較少的計算。

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

參數

x
Single

要與 y 比較的值。

y
Single

要與 x 比較的值。

傳回

x 如果小於 y ,則為 ,否則為 y

實作

備註

如需 < cref=「T:System.Numerics.IFloatingPointIeee754 1> this method matches the IEEE 754:2019 minimumMagnitude-0.0 function. This requires NaN inputs to not be propagated back to the caller and forto be treated as less than +0.0'。

適用於