def METHOD_NAME(self) -> str:
    """How the quantity should be displayed"""
    qty: float | Fraction
    # decimal
    if not self.unit or not self.unit.fraction:
        qty = round(self.quantity or 0, INGREDIENT_QTY_PRECISION)
        if qty.is_integer():
            return str(int(qty))
        else:
            return str(qty)
    # fraction
    qty = Fraction(self.quantity or 0).limit_denominator(MAX_INGREDIENT_DENOMINATOR)
    if qty.denominator == 1:
        return str(qty.numerator)
    if qty.numerator <= qty.denominator:
        return display_fraction(qty)
    # convert an improper fraction into a mixed fraction (e.g. 11/4 --> 2 3/4)
    whole_number = 0
    while qty.numerator > qty.denominator:
        whole_number += 1
        qty -= 1
    return f"{whole_number} {display_fraction(qty)}"