println 2 decimal places java code example Example 1: java printf double 2 decimal places printf("%. 2f", value); Example 2: 2 decimal places print format JAVA printf(%.2f);