Java tutorial
public class Main { public static void main(String[] args) { String str = "50.00001"; double retval = Double.parseDouble(str); System.out.println("Value = " + retval); } }