Bookmark Topic Watch Topic
  • New Topic

Help needed

 
Himateja Madala
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 1780
  • Mark post as helpful
  • send pies
  • Report post to moderator
To do number formatting, use NumberFormat or DecimalFormat
 
Campbell Ritchie
Sheriff
Pie
Posts: 49796
69
  • Mark post as helpful
  • send pies
  • Report post to moderator
You can deal with 777777777 the same way you deal with 123456789.

Please don't post two threads about the same question.
 
    Bookmark Topic Watch Topic
  • New Topic