(s+e)>>1 and floating part

how (s+e)>>1 works as we always write (s+e)/2

and in last whjen we write code for decimal value could u please explain me that again