Easily, I'm writing a script that needs some values with 2 digits after floating point. Trying to use
bc I don't understand how use "scale", i.e.
A=12 ; bc <<< $(($A/5))
it's correct, but adding "scale" leads to an error:
A=12 ; bc <<< 'scale=2;$(($A/5))' (standard_in) 1: illegal character: $ (standard_in) 1: illegal character: $