def bond_quatinty(price, investment, minimum_fraction=0.1):
    """
    Computes the quantity of bonds purchased given the investment,
    bond price per unit, and the minimum fraction of a bond that
    can be purchased

    :param investment:          Amount of money that will be invested
    :param minimum_fraction:    Minimum fraction that can be purchased
    :param price:               Price of bond per unit

    :return:                    [quantity of bonds purchased, Total Value Invested, Eror%]
    """

    Qf = int(investment / (minimum_fraction * price))
    Q = Qf * minimum_fraction
    value = Q * price
    error = (investment - value) / value * 100
    return [Q, value, error]