def percentage(value, decimal_places=1, multiply=True, failure_string='N/A'):
    try:
        value = float(value)
    except ValueError:
        return failure_string
    if multiply:
        value = value * 100
    return _saferound(value, decimal_places) + '%'
Converts a floating point value into a percentage value.
dataset/ETHPy150Open eyeseast/python-tablefu/table_fu/formatting.py/percentage