def main_float_input(message):
    """
    Takes message to print when asking for input, the converts to float.
    Repeats user input until it can be converted to float without error.
    Returns that float once done.
    """
    try_input = input(message)
    while True:
        try:
            x = float(try_input)
            return x
        except ValueError:
            try_input = input("Not a valid input, try again: ")