how to multiply an integer with a decimal using shell scripting?
I cant seem to get an answer when i multiply an integer with a decimal.
e.g a=5.14
b=7
answer=`expr $a \* $b`
echo "answer = $answer"
When i run it on the terminal, it keeps saying
expr: non-integer argument
answer=
Can someone help me?
Tell me where im going wrong?
|