def get_number(line, position):
    """Searches for the end of a number.

    Args:
        line (str): The line in which the number was found.
        position (int): The starting position of the number.

    Returns:
        str: The number found.
        int: The position after the number found.
    """

    word = ""
    for pos, char in enumerate(line[position:]):
        if char.isdigit() or char == ".": word += char
        else: return word, position + pos
    return word, len(line)