fabs() modification
This commit is contained in:
parent
f65900ed3e
commit
168f0b444f
@ -36,7 +36,9 @@ int main() {
|
||||
break;
|
||||
}
|
||||
|
||||
if (fabs(vysledok - ocakavany_vysledok) < 0.0001) {
|
||||
printf("Expected result: %.4f, Actual result: %.4f\n", ocakavany_vysledok, vysledok);
|
||||
|
||||
if (fabs(vysledok - ocakavany_vysledok) < 0.01) {
|
||||
printf("OK\n");
|
||||
} else {
|
||||
printf("ZLE\n");
|
||||
|
Loading…
Reference in New Issue
Block a user