Int16.MinMagnitude(Int16, Int16) メソッド

定義

2 つの値を比較して計算します。この値は小さくなります。

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小さい値として扱う必要があります。

適用対象