format a number for output

BartlebyScrivener rpdooling at gmail.com
Mon Aug 7 12:59:43 EDT 2006


abcd wrote:
> if i have a number, say the size of a file, is there an easy way to
> output it so that it includes commas?
>
> for example:
>
> 1890284
>
> would be:
> 
> 1,890,284

see also this thread:

http://tinyurl.com/qf6ew

rd




More information about the Python-list mailing list