aspose file tools*
The moose likes Java in General and the fly likes Getting 'E' at the end of numbers in computations I am doing in my java code. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Getting Watch "Getting New topic
Author

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

Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 639
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

Joined: May 22, 2012
Posts: 867
    
    5
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

Joined: Jul 07, 2012
Posts: 639
thanks. I kept everything as Int and it vanished.
 
wood burning stoves
 
subject: Getting 'E' at the end of numbers in computations I am doing in my java code.