number format

J

Josh Close

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,663
Latest member
josh5959

Latest Threads

Top