string to double number code example Example: string to double java String text = "12.34"; double value = Double.parseDouble(text);