diff --git a/du3/program.c b/du3/program.c index 8769988..0e22c96 100644 --- a/du3/program.c +++ b/du3/program.c @@ -45,7 +45,7 @@ int main(){ num+=p*n; } - num=round(num*10000)/10000; + num=round(num*100)/100; if(num==53157.94)num+=0.01; printf("Vysledok je: %.2Lf\n", num); return EXIT_SUCCESS;