def percentage(numerator, denominator):
    """
    Returns percentage formatted string from numerator/denominator.
    """
    try:
        denominator = float(denominator)
        numerator = float(numerator)
    except ValueError:
        return ''

    if denominator == 0:
        return ''

    return '{:.0%}'.format(numerator / denominator)