I tried:
if [[ ${numbers[4]} -ge $best_res ]]; then
...
fi
I got the following error for the if condition line:
7 ./q1.sh: line 58: [[: 0.346: syntax error: invalid arithmetic operator (error token is ".346")
there are similar questions, but my error is in "if" condition. How can I fix it with "bc" or "dc"?