Limit the VALUE to a specified Min and Max

Input

Value NUMBER

Number to round

Min NUMBER

The smallest allowed number

Max NUMBER

The larges allowed number

Output NUMBER

Returns the input value if between Min and Max. Other wise returns the Min or Max value

Examples