View Single Post
  #2 (permalink)  
Old 05-31-2007, 05:50 PM
Hasan Hasan is offline
Member
 
Join Date: May 2007
Posts: 11
Hasan is on a distinguished road
You can use DecimalFormat class for printing.

Code:
double x = 1.20136; DecimalFormat f = new DecimalFormat("#.##"); f.format(x);
Reply With Quote