Re: float("1,009.67") error

2009-06-03 Thread Chris Rebert
On Wed, Jun 3, 2009 at 8:29 AM, Jianli Shen wrote: > I want to converter a string 1,009.67 to float, I got: > python ValueError: invalid literal for float() > how do I handle this. > > 1,009.67 is generated by some other program. It could be 2,898.88 > 3,554,545.66 etc. Python's literal float syn

float("1,009.67") error

2009-06-03 Thread Jianli Shen
I want to converter a string 1,009.67 to float, I got: python ValueError: invalid literal for float() how do I handle this. 1,009.67 is generated by some other program. It could be 2,898.88 3,554,545.66 etc. Thanks, -- http://mail.python.org/mailman/listinfo/python-list