- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Convert a String to a double type number in Java
To convert a String to a double type number in Java, use the Double.parseDouble() method.
Here is our string.
String str = "699.7e130";
Let us now convert the above string to double.
double val = Double.parseDouble(str);
Example
public class Demo { public static void main(String args[]) { String str = "699.7e130"; double val = Double.parseDouble(str); System.out.println(val); } }
Output
6.997E132
- Related Articles
- Convert double primitive type to a Double object in Java
- Java Program to convert a String to a float type Number
- Convert double to string in Java
- Convert String to Double in Java
- How to convert a double value to String in Java?
- How to Convert Double to String to Double in Java?
- How to convert a Double array to a String array in java?
- Convert double value to string in Java
- Golang Program to convert double type variables to string
- Swift program to convert double type variable to string
- Haskell Program to convert double type variables to string
- Convert string to a number in Java
- Java Program to convert String to Double
- Java methods to convert Double to String
- How to convert a CLOB type to String in Java?

Advertisements