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

適用於