Clamp values to the steps.