def human_format(num):
    """Make a nice human readable format for numbers."""
    magnitude = 0
    while abs(num) >= 1000:
        magnitude += 1
        num /= 1000.0
    # add more suffixes if you need them
    return "%.2f%s" % (num, ["", "K", "M", "B", "T", "P"][magnitude])