fn clamp_to_one(number: NumberOrPercentage) -> NumberOrPercentage
Clamp the value to 1 if the value is over 100%.