jQuery in Action, 3rd edition
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 820
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: 969
    
    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: 820
thanks. I kept everything as Int and it vanished.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting 'E' at the end of numbers in computations I am doing in my java code.
 
It's not a secret anymore!