Why won't this statement work?total=`expr $mPercent / 100 * .482 + $fPercent / 100 * .518`mPercent is a number as a result of an awk statement, as well as fPercent. I also get expr: non-numeric argument as an error message.NOTE: For the purposes of his question, let's say that the 2 variables have the value 3.27.
Arithmetic operations with expr and variables
bash;shell;arithmetic;floating point