parsedouble java

Java
double val = Double.parseDouble(str); 
Source

Also in Java: