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


Groups > comp.lang.python > #43577

Re: howto remove the thousand separator

Path csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <darcy@druid.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.193
X-Spam-Level *
X-Spam-Evidence '*H*': 0.75; '*S*': 0.14; 'cc:addr:python-list': 0.11; 'comma': 0.16; 'im:': 0.16; 'subject:howto': 0.16; 'subject:remove': 0.16; 'wrote:': 0.18; 'pfxlen:0': 0.19; 'cc:addr:python.org': 0.22; 'voting': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'subject:the': 0.34; 'charset:us-ascii': 0.36; 'how': 0.40; 'remove': 0.60; 'to:addr:gmail.com': 0.65; 'reply': 0.66; 'democracy': 0.84; 'received:98.158': 0.84; '+0800': 0.91; '2013': 0.98
Date Sun, 14 Apr 2013 15:17:49 -0400
From "D'Arcy J.M. Cain" <darcy@druid.net>
To "pyth0n3r" <pyth0n3r@gmail.com>
Subject Re: howto remove the thousand separator
In-Reply-To <201304150257331336590@gmail.com>
References <201304150257331336590@gmail.com>
X-Mailer Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
Cc python-list <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.598.1365967506.3114.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1365967506 news.xs4all.nl 2636 [2001:888:2000:d::a6]:56422
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:43577

Show key headers only | 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