I read price from user input. When i multiply the input with int like this
T=\"$((PRICE*QTY))\"|bc; gives line 272: 12.
\"$((PRICE*QTY))\"|bc
var=$(echo "scale=2;$PRICE*$QTY" |bc)
You can also use awk
awk -vp=$PRICE -vq=$QTY 'BEGIN{printf "%.2f" ,p * q}'