wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "String conversion in to double" Watch "String conversion in to double" New topic
Author

String conversion in to double

reena Mehta
Greenhorn

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: 3068
    
  33

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
Sheriff

Joined: Oct 27, 2005
Posts: 19670
    
  18

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Aditya Yagnik
Greenhorn

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,
Aadi
 
jQuery in Action, 2nd edition
 
subject: String conversion in to double