I need to convert a string currency string in Continental Europe format into a float number:
Input:
\'6.150.593,22 €\'
Realize tha
A simple solution may be as follows:
>>> val = '6.150.593,22 €' >>> res = val[:-2].split(',') >>> float('.'.join([res[0].replace('.', ''), res[1]])) 6150593.22