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