how to convert string to double in android

how to convert string to double in android
String s = "3.14";
DecimalFormat dF = new DecimalFormat("0.00");
Number num = dF.parse(s);
double dbnum = num.doubleValue();
S‮cruo‬e:www.lautturi.com
Created Time:2017-09-11 10:49:30  Author:lautturi