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.
[Click to add or edit comments])
Please prepend comments below including a date