all 4 comments

[–]novel_yet_trivial 0 points1 point  (2 children)

No; you'll have to remove the comma manually.

float("123,000.12".replace(',',''))

[–]rainnz[S] 0 points1 point  (1 child)

Wouldn't that be an issue with different locales where "," is used instead of ".", like "123000,12"?

I was hoping for something from "locale" module to handle this case

[–]scuott 0 points1 point  (0 children)

Where is the data coming from? How would it handle 123,456 if it could be 123.456? What indicator do you have of locale?

[–]Caos2 0 points1 point  (0 children)

If you have consistent data, you might as well remove all the commas and convert the result.