round fix
This commit is contained in:
parent
1aa6bf555e
commit
62fcb14125
@ -36,7 +36,9 @@ int main() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fabs(vysledok - ocakavany_vysledok) < 0.01) {
|
vysledok = roundf(vysledok * 100) / 100;
|
||||||
|
|
||||||
|
if (vysledok == ocakavany_vysledok) {
|
||||||
printf("OK\n");
|
printf("OK\n");
|
||||||
} else {
|
} else {
|
||||||
printf("ZLE\n");
|
printf("ZLE\n");
|
||||||
@ -53,4 +55,3 @@ int main() {
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user