yes... to show the output into 3 decimal place.. you have to use..

System.out.printf ("%.3f" , Math.PI);

This will convert the output into 3 decimal places. In other output system like...