Re: 3 number and dot..
- From: Paul McGuire <ptmcg@xxxxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 13:38:08 -0700
On Oct 31, 2:58 pm, Abandoned <best...@xxxxxxxxx> wrote:
Hi..
I want to do this:
for examle:
12332321 ==> 12.332.321
How can i do?
....x = (12332321,)
while (x[0]>0): x=divmod(x[0],1000)+x[1:]
(0, 12, 332, 321)x
'12.332.321'".".join(map(str,x[1:]))
-- Paul
.
- Follow-Ups:
- Re: 3 number and dot..
- From: Abandoned
- Re: 3 number and dot..
- From: Abandoned
- Re: 3 number and dot..
- References:
- 3 number and dot..
- From: Abandoned
- 3 number and dot..
- Prev by Date: XML DOM, but in chunks
- Next by Date: Re: XML DOM, but in chunks
- Previous by thread: Re: 3 number and dot..
- Next by thread: Re: 3 number and dot..
- Index(es):