File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes String conversion in to double Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "String conversion in to double" Watch "String conversion in to double" New topic

String conversion in to double

reena Mehta

Joined: Nov 17, 2010
Posts: 24

i just want convert string value-8.099996484816074E-4 in double
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3119

reena Mehta wrote:
i just want convert string value-8.099996484816074E-4 in double

Did you try exploring the Double class?

Mohamed Sanaulla | My Blog
Rob Spoor

Joined: Oct 27, 2005
Posts: 19908

Reena, this is the second time you've created, in a time frame of a few minutes, two nearly identical posts. Please UseOneThreadPerQuestion. If you need to add something to your original request, just edit your first post if there are no replies yet, and otherwise post a new reply to the existing thread.

How To Ask Questions How To Answer Questions
Aditya Yagnik

Joined: Mar 29, 2010
Posts: 7

Hey Reena,

I am not sure what format do you want to see output. However, if its just matter of converting string to double you can use parseDouble method in Double class as below.

Best regards,
I agree. Here's the link:
subject: String conversion in to double