View Single Post
  #2 (permalink)  
Old 11-22-2007, 04:26 AM
staykovmarin staykovmarin is offline
Senior Member
 
Join Date: Nov 2007
Location: Newport, WA
Posts: 141
staykovmarin is on a distinguished road
Code:
DecimalFormat form = new DecimalFormat("#.00"); double d = 1.70; System.out.println(form.format(d));
You could have a variable that stores how much they have entered, and just give them that much money back?
Reply With Quote