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


Groups > comp.lang.python > #43578

Re: howto remove the thousand separator

References <201304150257331336590@gmail.com> <516B00A4.7070503@lightbird.net>
Date 2013-04-14 12:22 -0700
Subject Re: howto remove the thousand separator
From Mark Janssen <dreamingforward@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.599.1365967675.3114.python-list@python.org> (permalink)

Show all headers | View raw


> I would do int(num.replace(',', ''))

That's much more pythonic than my C-ish version

Mark

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


Thread

Re: howto remove the thousand separator Mark Janssen <dreamingforward@gmail.com> - 2013-04-14 12:22 -0700

csiph-web