This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

String conversion in to double

 
reena Mehta
Greenhorn
Posts: 24
  • 0
  • 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
Pie
Posts: 3159
33
Google App Engine Java Ruby
  • 0
  • 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: 20388
46
Chrome Eclipse IDE Java Windows
  • 0
  • 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
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic