printf(1) "%.3f" $(echo $x | bc -l)
format and print data
source manpages: printf