def long_number_readable(value):
    """
    Convert big int (>=999) to readable form.
    1000 => 1k.
    2333 => 2.3k.
    1000000 => 1 mln.
    1258000 => 1.26 mln.
    """
    value = int(value)
    if value < 1000:
        return value
    for m, d, inf, fnf, n in _long_number_readable_formats:
        if value < m:
            return ((inf if value % d == 0 else fnf) + unicode(n)).format(value / float(d))
    return value
def long_number_readable ( value ) : value = int ( value ) if value < 1000 : return value for m , d , inf , fnf , n in _long_number_readable_formats : if value < m : return ( ( inf if value % d == 0 else fnf ) + unicode ( n ) ) . format ( value / float ( d ) ) return value
Convert big int (>=999) to readable form.
    1000 => 1k.
    2333 => 2.3k.
    1000000 => 1 mln.
    1258000 => 1.26 mln.