Fix range lookup from float type