def _saferound(value, decimal_places):
    try:
        f = float(value)
    except ValueError:
        return ''
    format = '%%.%df' % decimal_places
    return format % f
Rounds a float value off to the desired precision
dataset/ETHPy150Open eyeseast/python-tablefu/table_fu/formatting.py/_saferound