> I believe that such a function is normally called "clamp". I'd not heard that before; is that the mathematical word for it? (clip is terminology from graphics programming, where a clipping rectangle is another word for a window or viewport) Darren