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: 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" To: "pyth0n3r" 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 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Mon, 15 Apr 2013 02:57:35 +0800 "pyth0n3r" wrote: > float(). How can i remove the comma in int data? Any reply will be int(n.replace(',', '')) -- D'Arcy J.M. Cain | 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