def is_in_range(x, config):
    """
    Checks to see x is in the range of the config.

    :param x: number
    :type x: int/float
    :param config: configuration
    :type config: dict
    :returns: bool
    """
    try:
        return config['start'] <= float(x) <= config['end']
    except:
        raise TypeError("Value is not a float")