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

定義

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

public:
 static System::Decimal Clamp(System::Decimal value, System::Decimal min, System::Decimal max) = System::Numerics::INumber<System::Decimal>::Clamp;
public static decimal Clamp(decimal value, decimal min, decimal max);
static member Clamp : decimal * decimal * decimal -> decimal
Public Shared Function Clamp (value As Decimal, min As Decimal, max As Decimal) As Decimal

パラメーター

value
Decimal

クランプする値。

min
Decimal

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

max
Decimal

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

返品

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

実装

適用対象