script needs to divide by 2

i need to divide this count by 2, what variable can i use in my script?

  26 hcscprod\_cpus_totals /2 = 13
  13 hcncprod\_cpus_totals /2= 6.5
 541 ktazp\_cpus_totals /2= 270.5
 346 ktazd\_cpus_totals /2=173
 110 ktazi\_cpus_totals /2=55
  10 ktazq\_cpus_totals /2=5
X=31
echo $((X/2))

I always use bc for stuff like this:

# X=31
# echo $((X/2))
15
# echo "scale=1;${X}/2" | bc
15.5

Cheers
ZB