Rough draft: Proposed format specifier for a thousands separator

Hendrik van Rooyen mail at microcorp.co.za
Sat Mar 14 04:45:20 EDT 2009


"Paul Rubin" <http://phr.cx@NOSPAM.invalid> wrote:
> 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.

I went "tilt" like a slot machine long before I noticed...
:-)

- Hendrik




More information about the Python-list mailing list