Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

String conversion in to double

 
reena Mehta
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
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
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?
 
Rob Spoor
Sheriff
Pie
Posts: 20529
54
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.
 
Aditya Yagnik
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic