def unfrac(fraction, round_to=4):
    """Turn a fraction into a float rounded to the fourth decimal."""
    float_num = round(float(fraction), round_to)
    # # To avoid a DeprecationWarning from directly going from fractions to floats,
    # # do the calculation explicitly.
    # numerator = fraction.numerator
    # denominator = fraction.denominator
    # float_num = round(numerator/denominator, round_to)
    return float_num