def number_formatter(number, pos=None):
    """Convert a number into a human readable format."""
    magnitude = 0
    while abs(number) >= 1000:
        magnitude += 1
        number /= 1000.0
    return '%.0f%s' % (number, ['', 'K', 'M', 'B', 'T', 'Q'][magnitude])