Dezimaler bis zu 6 Plätze in Java
double num = 1.34567;
System.out.format("%.4f", num);
Faithful Finch
double num = 1.34567;
System.out.format("%.4f", num);