Precision and >> how it works there

how (s+e)>>1
here>> what is the meaning of this operator
and then what is precision
and why at the end we overshot the value.

Hey @TheSourabh where did you saw >> operator ? Moreover I am not able to understand your overshot meaning in context with the doubt. Please elaborate your doubt in simple words :slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

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

hello @TheSourabh

this ( >> ) is right shift operator (u will learn it in ur bit manipulation playlist) . it is equivalent to dividing by 2.
(s+e)>>1 = (s+e)/2

how accurate ur answr is precision.

didnt get this.pls explain

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.