英語で読む

次の方法で共有


Decimal.Clamp(Decimal, Decimal, Decimal) メソッド

定義

値を包括的な最小値と最大値にクランプします。

public static decimal Clamp(decimal value, decimal min, decimal max);

パラメーター

value
Decimal

クランプする値。

min
Decimal

クランプする必要がある value 包括的な最小値。

max
Decimal

クランプする必要がある包括的な value 最大値。

戻り値

maxの包括的な範囲にクランプvalueしたmin結果。

実装

適用対象

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