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'。

适用于