Question : how to convert string with comma to double in dart
Answered by : mathias-godwin
String t = '5,000';
double f = double.parse(t.replaceAll(',',''));
print(f);
Source : https://stackoverflow.com/questions/62356750/how-can-i-convert-string-with-comma-to-double-in-dart | Last Update : Sun, 21 Aug 22