I have below values stored in the respective variables:
s=$(nice grep -i "sf WOW" *`date --date='1 hour ago' +%y%m%d%H`* | grep -i "TRAF:5" | wc -l)
f=$(nice grep -i "sf WOW" *`date --date='1 hour ago' +%y%m%d%H`* | grep -i "TRAF:7" | wc -l)
a=`expr $s + $f`
I need to store the division output in a float variable with an accuracy of 5 digits.