float("1,009.67") error
Jianli Shen
wjxiaoshen at gmail.com
Wed Jun 3 11:29:57 EDT 2009
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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090603/08b55710/attachment.html>
More information about the Python-list
mailing list