def salary_range_frac(min_salary: float, max_salary: float) -> float:
    """Returns the fraction of the salary range relative to the midpoint

    For example since (75, 125) are 100 +/- 25, and (2*25)/100 = 0.5
        salary_range_frac(75, 125) == 0.5
    """
    avg_salary = (max_salary + min_salary) / 2.0
    return (max_salary - min_salary) / avg_salary