bound_range function

Bound a range of numeric values