File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 541
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: 865
    
    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: 541
thanks. I kept everything as Int and it vanished.
 
Consider Paul's rocket mass heater.
 
subject: Getting 'E' at the end of numbers in computations I am doing in my java code.
 
Similar Threads
How far we can use Generics?
euler 23 revisited
Button receive an sum
squaring values in a loop
Help ! This code compiles but does not run: NoClassDefFoundError: Classpath info?