Greetings!
I uses bс to make some calculations in my script. For example:
bc scale=6 1/2 .500000
For further usage
In one line:
printf "%0.6f\n" $(bc -q <<< scale=6\;1/2)