• Post Reply Bookmark Topic Watch Topic
  • New Topic

float value gets roundedoff in portlet  RSS feed

Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am developing a portlet application which will show my database table("OrderData") to the user.
to accomplish this i am retrieving all the table rows and adding them to a HashTable(HashTable<String ,String>).There are some columns in my table which are of float datatype e.g price. I am getting price from the result set as getDouble and then converting it to string to strore it into hashtable.

When i run my application,it works fine and shows all the table data to the user,but after some time(after 1-2 hours) when database table grows my price field gets truncated on screen and shows invalid values. If i restart my Server(jetspeed) then problem gets resolved but reoccurs after 1-2 hours.

Is anybody have idea about this problem ?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!