On 04/14/2013 02:57 PM, pyth0n3r wrote:
> 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().Hi,
> How can i remove the comma in int data? > Any reply will be appreciated!! > > Best, > Chen > > >
I would do int(num.replace(',', '')) -m -- Lark's Tongue Guide to Python: http://lightbird.net/larks/ When a friend succeeds, I die a little. Gore Vidal -- http://mail.python.org/mailman/listinfo/python-list