parsing a string to a double code example Example: from string to double java String str="122.202"; double dnum = Double.parseDouble(str);