Bash: echo: scale, bc: fraction to decimal

nick3499
1 min readFeb 19, 2017

--

echo prints message to a Unix-like terminal. scale=4;1/16 sets four decimal places for decimal equivalent of the fraction 1/16. bc implements base conversion—convert from one base number system to another.

--

--

nick3499
nick3499

Written by nick3499

coder of JavaScript and Python

No responses yet