Brute for rounding after using bc

This one rounds to 3 decimal places. Three "dots" in the regex ---> sed 's/^\(.*\.{span:style:background-color:black; color:white;/}...{/span}\).*$/\1/g'. ADd or remove dots to change the rounding.

me@host:~$ echo "5 / 27" | bc -l | sed 's/^\(.*\....\).*$/\1/g'
.185

Note: This really isn't rounding, it just looks like it.

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.