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


Groups > comp.lang.python > #43578 > unrolled thread

Re: howto remove the thousand separator

Started byMark Janssen <dreamingforward@gmail.com>
First post2013-04-14 12:22 -0700
Last post2013-04-14 12:22 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#43578 — Re: howto remove the thousand separator

FromMark Janssen <dreamingforward@gmail.com>
Date2013-04-14 12:22 -0700
SubjectRe: howto remove the thousand separator
Message-ID<mailman.599.1365967675.3114.python-list@python.org>
> I would do int(num.replace(',', ''))

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

Mark

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web