fractions in linux
I am using fractions in my equations but it gives me an error. see below
let var1=3.4 does not work - var1=3 works
i also tried the bash calculator like
var1=`bc <<EOF
3.4+5.6
EOF
`
echo $var1
does not work gives me syntax error invalid arithmetic
any help will be appreciated
|