def round_number(count, keep_width=False):
    text = '%.2f' % float(count)
    if not keep_width:
        text = re.sub('0+$', '', text)
        text = re.sub('\.$', '', text)
    return text
Round a floating point number to two decimal places in a human friendly format.
dataset/ETHPy150Open xolox/python-humanfriendly/humanfriendly/__init__.py/round_number