I'm noticing an error:
bash: syntax error near unexpected token `-105.5*7+50*3'
When executing the below script/expression:
expr (-105.5*7+50*3)/20 + (19^2)/7 | bc -l
Is there any other way to evaluate such mathematical/floating point operations?
echo in place of
expr does resolve this however I've used
bc before and it has handled floats quite normally why not in this scenario is what I'd like to find out now.