I think is a nice idea to put a "how to do" a float division. Some beginners may have some difficulty with this factor. So, I write this exemple: # !/bin/bash # scale will define how long will be your number after the decimal point echo "scale=2; 3.0/2" | bc