printf.1posix "%.3f" $(echo $x | bc -l)
write formatted output
source manpages: printf