This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 778
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: 968
    
    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: 778
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!