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 포괄 최댓값입니다.

반환

max의 포함 범위를 클램핑 valuemin 결과입니다.

구현

적용 대상