aspose file tools
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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: 3101

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: 19847

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,
It is sorta covered in the JavaRanch Style Guide.
subject: String conversion in to double