getRange function

Function for rounding and/or segmenting a range.