Convert string to double-not working

Str=“10,000.78”
how to convert this to double.
Conver.toDouble(str.replace(“,”,“”)) - not working
CDbl(str.replace(“,”,“”))-not working
Double.parse(dit to dit)-not working

Try this -
Convert.ToDouble(“10,000.78”);
output : 10000.78

This also seems to work. Just a difference of preference in using Convert.ToDouble or CDbl.

Processusvierge.zip (3,3 Ko)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.