• Post Reply Bookmark Topic Watch Topic
  • New Topic

Double representation  RSS feed

 
Archies Gomes
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Whenever i do any operation on two double numbers and when i try to print it ,I get the resulting output in the form oe 123E7 ie its in the exponential form.Is there a way I can avoid the "E" representaion and get the actual number of 0's after the 123.Kindly reply fast .
Thanks,
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the class java.text.DecimalFormat.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!