Int16.MinMagnitude(Int16, Int16) 方法

定义

将两个值与较小的计算进行比较。

public:
 static short MinMagnitude(short x, short y) = System::Numerics::INumberBase<short>::MinMagnitude;
public static short MinMagnitude (short x, short y);
static member MinMagnitude : int16 * int16 -> int16
Public Shared Function MinMagnitude (x As Short, y As Short) As Short

参数

x
Int16

要与 y进行比较的值。

y
Int16

要与 x进行比较的值。

返回

x 如果小于 y,则为 ;否则为 y

实现

注解

对于 IFloatingPointIeee754<TSelf> 此方法,与 IEEE 754:2019 minimumMagnitude 函数匹配。 这要求 NaN 输入不传播回调用方,并 -0.0 被视为小于 +0.0

适用于