(number)
return str(number)
Reformats numbers with qualifiers as K
Reformats numbers with qualifiers as K
Reformats numbers with qualifiers as K
def bignum(number):
    "Reformats numbers with qualifiers as K"
    try:
        value = float(number) / 1000.0
        if value > 10:
            return "%0.fk" % value
        elif value > 1:
            return "%0.1fk" % value
    except ValueError as exc:
        pass
    return str(number)
def bignum ( number ) : try : value = float ( number ) / 1000.0 if value > 10 : return "%0.fk" % value elif value > 1 : return "%0.1fk" % value except ValueError as exc : pass return str ( number )