desimal hingga 6 tempat di java

double num = 1.34567;
System.out.format("%.4f", num);
Faithful Finch