def extract_val_from_str(s):
    """Extract value from string.

    Args:
        s (str): A string that looks like "200*a"

    Returns:
        float: The float from the string.

    """
    index = s.find("*")
    return float(s[:index])