def is_float(word: str):
    """
    Checks if a number is a float
    """

    if "." not in word:
        return False
    split = word.split(".")
    if len(split) > 2 or len(split) < 1:
        return False
    for num in split:
        if not num.isdigit():
            return False
    return True