insert thousands separators
Nick Vargish
nav at adams.patriot.net
Mon Jun 16 14:43:00 EDT 2003
More information about the Python-list mailing list
Mon Jun 16 14:43:00 EDT 2003
- Previous message (by thread): insert thousands separators
- Next message (by thread): insert thousands separators
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Gerhard Häring <gh at ghaering.de> writes: > So if you only want to print the fractional value, str() will do > fine. But str() won't make floats capable of representing arbitrary > numbers, either ;-) If I really cared about floats, I could str(fval).split('.') -- after checking for floatness, of course. But since I don't care about floats, I'm gonna let it ride for now -- until it bites me in some other context. :^) Nick -- # sigmask.py || version 0.2 || 2003-01-07 || Feed this to your Python. print reduce(lambda x,y:x+chr(ord(y)-1),'Ojdl!Wbshjti!=obwAqbusjpu/ofu?','')
- Previous message (by thread): insert thousands separators
- Next message (by thread): insert thousands separators
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list