語言

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.IFloatingPointIeee7541> this method matches the IEEE 754:2019 minimumMagnitude-0.0function. This requires NaN inputs to not be propagated back to the caller and forto be treated as less than+0.0'.

適用於