英語で読む

次の方法で共有


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

定義

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

C#
public static float MinMagnitude(float x, float y);

パラメーター

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' を参照してください。

適用対象

製品 バージョン
.NET 7, 8, 9, 10