Click to See Complete Forum and Search --> : Currency


Shaolin
08-30-2008, 05:59 PM
Hi Guys,

I extracted some price data from the DB, when I output it onto the html it misses out the zero at the end of the price (e.g. £50.2) - Is there anyway I can add a zero or two in java ? I just checked the DB, the prices are displaying fine. It looks like a problem with java..

EDIT: Problem fixed. I used String instead of Double and it did the job.

chazzy
08-30-2008, 09:14 PM
yep, or you can use a formatter to display the data correctly