How can I convert a String such as \"12.34\" to a double in Java?
String
\"12.34\"
double
To convert a string back into a double, try the following
String s = "10.1"; Double d = Double.parseDouble(s);
The parseDouble method will achieve the desired effect, and so will the Double.valueOf() method.