8.582
Bearbeitungen
Jneug (Diskussion | Beiträge) |
Jneug (Diskussion | Beiträge) |
||
| Zeile 344: | Zeile 344: | ||
|- | |- | ||
| Rundet die Zahl <code>zahl</code> auf <code>anzahlStellen</code> Stellen hinter dem Komma. | | Rundet die Zahl <code>zahl</code> auf <code>anzahlStellen</code> Stellen hinter dem Komma. | ||
| {{nowrap|'''double Math.round( double zahl, int | | {{nowrap|'''double Math.round(double zahl, int stellen)'''}} | ||
| <syntaxhighlight lang="java"> | | <syntaxhighlight lang="java"> | ||
double gerundet = Math.round(14.235, 1); // 14.2 | double gerundet = Math.round(14.235, 1); // 14.2 | ||