Why am I getting an error with the ( in this line of script?
printf "%.3f\n" "$(bc -l <<< ($sum / $total))"
Error:
solution.sh: command substitution: line 11: syntax error near unexpected token `('
solution.sh: command substitution: line 11: `bc -l <<< ($sum / $total))"'
The desired behavior is to take a numerical variables $sum and $total and perform division on them, then print out the value to 3 decimal points.