[Edit]
+
0
-
0

python change commas into dots

1 2 3 4 5 6
string_number = '123,456' result = float(string_number.replace(',', '.')) # change commas into dots and parse to float print(result) # 123.456 print(type(result)) # <class 'float'>