Create Search for a Range 

very briliant solution. set target = target - 0.5, the return left position is just left position of the range. When set target = target + 0.5, the return left position - 1 is left position of the range.