how to print value upto 2 decimal in java while concatenation code example Example: print up to 2 decimal in java System.out.printf("%.2f", value);