howto remove the thousand separator

2013-04-14 Thread pyth0n3r
Hi, I came across a problem that when i deal with int data with ',' as thousand separator, such as 12,916, i can not change it into int() or float(). How can i remove the comma in int data? Any reply will be appreciated!! Best, Chen -- http://mail.python.org/mailman/listinfo/python-list

Re: Re: howto remove the thousand separator

2013-04-16 Thread pyth0n3r
Hi D'A, Thanks alot for your reply, it works for me perfectly. Best, Chen 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