Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

String conversion in to double  RSS feed

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i just want convert string value-8.099996484816074E-4 in double
 
Bartender
Posts: 3185
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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


Did you try exploring the Double class?
 
Sheriff
Posts: 21255
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Nothing? Or something? Like this tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!