I read price from user input. When i multiply the input with int like this
T=
"$((PRICE*QTY))"|bc
; gives line 272: 12.00: syntax error: invalid arithmetic operator (error token is ".00") or .50
depending on user input. How do i multiply these two variables and get a total with 2 decimal points?
echo $QTYS\* $PRICE | bc
; Its also rounding price to 2 decimal places without scale. For some reason just price*QTY was giving me command not found error. – Flask