How do I correctly round IEEE 754 floating point numbers on the command line?I want to specify the precision of the output number - the count of fractional digits.Rounding 6.66 to precision 1 should give 6.7, for example. More in the table below:Value   Precision  Rounded6.66    0          76.66    1          6.76.66    2          6.666.66    3          6.6606.666   3          6.6666.6666  3          6.667It should be useable in an interactive shell, but ideally robust enough for using it in production shell schripts. 
How to round floating point numbers in shell?
bash;command line;arithmetic;floating point