number format

Josh Close narshe at gmail.com
Wed Jul 21 22:48:43 CEST 2004


How do I do a number format in python? Like with php's number_format()
function you can do

number_format(1000)

and it will return

1,000

It just adds the ',' and has another option for decimal places too.

-- 
-Josh



More information about the Python-list mailing list