num1=1 num2=2 num3=`echo "scale=2; ${num1}/${num2}" |bc` .50 转载于:https://blog.51cto.com/mattsong/535038