number format

Josh Close narshe at
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


and it will return


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


More information about the Python-list mailing list