def is_number(s):
    """
    This function checks if given input is a float and returns True if so, and False if it is not.

    :param s: input
    :return: Boolean.
    """
    try:
        float(s)
        return True
    except ValueError:
        return False