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.
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.