Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43577

Re: howto remove the thousand separator

Date 2013-04-14 15:17 -0400
From "D'Arcy J.M. Cain" <darcy@druid.net>
Subject Re: howto remove the thousand separator
References <201304150257331336590@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.598.1365967506.3114.python-list@python.org> (permalink)

Show all headers | View raw


On Mon, 15 Apr 2013 02:57:35 +0800
"pyth0n3r" <pyth0n3r@gmail.com> wrote:
> float(). How can i remove the comma in int data? Any reply will be

int(n.replace(',', ''))

-- 
D'Arcy J.M. Cain <darcy@druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 788 2246     (DoD#0082)    (eNTP)   |  what's for dinner.
IM: darcy@Vex.Net, VOIP: sip:darcy@Vex.Net

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: howto remove the thousand separator "D'Arcy J.M. Cain" <darcy@druid.net> - 2013-04-14 15:17 -0400

csiph-web