-1

I need the getter to return a double to .2 decimal spaces...

public double getPrice () {

   double totalPrice = 0.00;
   DecimalFormat deciFormat = new DecimalFormat("#.00");

...

return Double.valueOf(deciFormat.format(totalPrice));

but when I check the result in my .jsp it's still only to 1 decimal space. Any and all insight would be greatly appreciated.

1 Answers1

0

Changed the method return type to a String. Did a "Clean and build" and String.Format did the job!