Floating Division in Linux

Hi everyone , have a great day
given below is the excerpt of code

k=`grep -i success /var/seamless/spool/tdr/ERS_$date1$time1* | wc -l`;
l=`grep -i fail /var/seamless/spool/tdr/ERS_$date1$time1* | wc -l`;
m=`grep -i entertain /var/seamless/spool/tdr/ERS_$date1$time1* | wc -l`;
n=$(($k+$l))
o=$(($m/$n))
echo $k   $l   $m   $o

no $m is smaller then $n , hence $o will be something less then zero , but above given code doesn echo exact value of o ( should be something like 0.08766..) but it only echos 0
how can i get over this problem
Regards and thanks in anticipation

shell uses integer arithmetic.

use bc or awk

echo "1.14 3.97" | awk '{print $1/$2}'
# if you need 20 deimals of precision try this:
echo "1.14 / 3.97" | bc -l

Thanks :smiley: , for your help
one last thing , i have this kinda text in my file

9
2
3
2
1
4
8
0
5
7
9
6

9
2
3
2
1
8
8
2
0
9
3
7

9
2
3
2
1
8
8
2
0
9
3
7

9
2
3
2
2
4
1
4
6
7
0
0

9
2
3
2
2
4
1
4
6
7
0
0

9
2
3
2
1
4
5
6
6
1
0
6

is it possible that i can arrange it something like
923214566106
92321.......
92321...
.......
and so one
i would be very much obliged

nawk -v RS='' -v OFS='' '$1=$1' myFile.txt