This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Help needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Help needed

Himateja Madala
Greenhorn

Joined: Jun 15, 2006
Posts: 4
Hi,
Suppose i enter "77777777777" in JTextField and if i do a Double.parseDouble("7777777777") the result is obtained as 7.77777E9

However i dont want the exponential notation...I want the value to be displayed as 777777777 in the text field....
any inputs???
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
To do number formatting, use NumberFormat or DecimalFormat


There is no emoticon for what I am feeling!
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39478
    
  28
You can deal with 777777777 the same way you deal with 123456789.

Please don't post two threads about the same question.
 
Consider Paul's rocket mass heater.
 
subject: Help needed