java print double with 3 decimals code example
Example: java double format
NumberFormat formatter = new DecimalFormat("#0.00");
System.out.println(formatter.format(4.0));
NumberFormat formatter = new DecimalFormat("#0.00");
System.out.println(formatter.format(4.0));