Hallo
x = round (Zahl*100);
gerundeteZahl = x/10;
Fast richtig :-(
x = round (Zahl*100);
gerundeteZahl = x/100;
oder kürzer:
gerundeteZahl = Math.round(Zahl*100) / 100;
Grüsse
Tom
Hallo
x = round (Zahl*100);
gerundeteZahl = x/10;
Fast richtig :-(
x = round (Zahl*100);
gerundeteZahl = x/100;
oder kürzer:
gerundeteZahl = Math.round(Zahl*100) / 100;
Grüsse
Tom