def isfloat(tmp):
    """
    Check if a number is a float. Can take decimal point.

    Parameters
    ----------
    tmp : str
        Number in string form.

    Returns
    -------
    bool
        True if number is a float, False otherwise..

    """
    try:
        float(tmp)
        return True
    except ValueError:
        return False
