Constrain

function Constrain(const Value: Integer; const Lo: Integer; const Hi: Integer): Integer;

Description

Returns Value constrained to [Lo..Hi] range.

See Also

Clamp