This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting 'E' at the end of numbers in computations I am doing in my java code.

 
Monica Shiralkar
Ranch Hand
Posts: 842
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my java code on doing sum of numbers at the end of number I get 'E'.(E.g 2313434444E )How to get proper number without any 'E'. I tried declaring the sum as Double, Float but it still gives 'E' at the end.
Thanks
 
Ivan Jozsef Balazs
Rancher
Posts: 972
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is part of the scientific formatting. How do you format that result?




232305728292754300000000000000000,000000
2,32306e+32
2,32306E+32
232305728292754300000000000000000,00
 
Monica Shiralkar
Ranch Hand
Posts: 842
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks. I kept everything as Int and it vanished.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic