how to only print out 2 after decimal in java code example Example: 2 decimal places print format JAVA printf(%.2f);