Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Python
f = float(s)
import locale
s = u'545,2222'
locale.setlocale(locale.LC_ALL, 'de')
f = locale.atof(s)

When working with different locale decimal and thousand separators you have to use locale.atof
f = float(s)
(parse-double s)

New implementation...