def percentage(context, num, total_num):
    """
    Works out the percentage of num over total_num and then appends the percentage sign
    """

    p = float(num)/float(total_num) * 100
    percent = str(p) + "%"
    return percent