help formatting number

Mike Fletcher mfletch at tpresence.com
Tue Jun 13 17:17:06 EDT 2000


http://x53.deja.com/[ST_rn=ps]/getdoc.xp?AN=630397831

And the related thread may help.

Enjoy,
Mike

-----Original Message-----
From: Mario [mailto:mtbros at tin.it]
Sent: Tuesday, June 13, 2000 4:01 PM
To: python-list at python.org
Subject: help formatting number


Hi..
this is a simple question but I can't find a simple answer... so help me.

I have an integer variable and I want it to become a string variable
formatted so that there is a dot between each three digits of the original
number. An example:
var =3456789
It must become:
"3.456.789"
Ideas ?
 Thanks
        Mario





-- 
http://www.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list