Rough draft: Proposed format specifier for a thousands separator

Paul Rubin http
Fri Mar 13 22:06:10 EDT 2009


Paul Rubin <http://phr.cx@NOSPAM.invalid> writes:
>    '%.3K' % 1234567 = 1.235K     # K = 1000
>    '%.:3Ki' % 1234567 = 1.206K   # K = 1024

I meant 1.235M and 1.177M, of course.



More information about the Python-list mailing list