Pretty Integers

Lindstrom Greg - glinds Greg.Lindstrom at acxiom.com
Fri Mar 15 14:08:58 EST 2002


I would like to add commas to the integers I am writing (for example:
12345678 --> 12,345,678).  I have a fairly ugly method that relies heavily
upon mods, but am convinced there must be a "pretty" way to do it.  How
would you go about this task?

Thanks, everyone!

Greg Lindstrom
Acxiom Corporation,                    mail: CWY10011149
InfoBase Products Development                  office: (501) 342-1626
301 Industrial Blvd, Conway, AR, 72032     fax:     (501) 336-3911 
email: Greg.Lindstrom at acxiom.com           
"The great thing about standards is there are so many to choose from"
Michael Hudson



*********************************************************************

The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.





More information about the Python-list mailing list