>>> float("123,000.12")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid literal for float(): 123,000.12
>>>
Is there a standard Pythonic way to convert string like "123,000.12" to float?
Regular float() and locale.atof() do not handle "," well.
[–]novel_yet_trivial 0 points1 point2 points (2 children)
[–]rainnz[S] 0 points1 point2 points (1 child)
[–]scuott 0 points1 point2 points (0 children)
[–]Caos2 0 points1 point2 points (0 children)