/////////////////////////////////////////////////////////////////////////////////////////////
// attempt to avoid these functions unless you *expect* the input to fall in the given range.
/////////////////////////////////////////////////////////////////////////////////////////////
// attempt to avoid these functions unless you *expect* the input to fall in the given range.