The moose likes JSP and the fly likes Display full double values Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Display full double values" Watch "Display full double values" New topic
Author

Display full double values

Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 254
Dear Ranchers

I have a table structure and the values in the table which are in trillions. Please see the below information for your better understanding.



In the table the values are displaying properly. But when I call the Double value using query and display in the JSP Page, I get the values like for

Please advise, how can i solve this issue..

Thanks/ Regards

Aravind
Claudiu Chelemen
Ranch Hand

Joined: Mar 25, 2011
Posts: 62

Hi Aravind,

You may format the output using jstl fmt library.
Example here, check out the number tags.

Cheers,
Claudiu
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50691

To be more explicit, you can provide a pattern for the output using the <c:formatNumber> tag.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
jQuery in Action, 2nd edition
 
subject: Display full double values
 
Threads others viewed
prepareStatement returns 0?
mysql date problem
problem in creating table with FULLTEXT KEY index
Why can't I select mysql'data?
Dynamic Combo Box in JSP using AJAX
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture