Десятичный до 6 мест в Яве

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