I have a problem with the following piece of code
THRESH_SERIE=("1" "5E-1" "1E-1" "5E-2" "1E-2" "5E-3" "1E-3" "5E-4" "1E-4")
for ((i=0;i<${#THRESH_SERIE[@]};i++))
do
let thresh=$(echo ${THRESH_SERIE[$i]})
$EXEC 1 $N ${thresh} 0 0 >> $OUTPUT
done
If I try to run the script it will return an error like the following for each value in the array:
/bench_new.sh: line 40: let: thresh=5E: value too great for base (error token is "5E")
I’ve tried also to use floating point numbers (like “0.1”), but it gives a different error. How can I solve this?
No particular reason for the array here (other than they’re “fun” to play with):