Doubt in number system

when we change 00100000 which is stored in memory as binary so while changing it to decimal no why we start from 2 is to power 7 why not 8 and what is the role of most significant bit in storing binary number

does every memory always have 8 bits only???

Hi @harsh.hj,
The first bit of the MSB (Most significant bit) tells us about the sign of number … as a signed number can be positive as well as negative the first bit tells us whether it is + or - … IF the MSB is 1 then the sign is -ve else if it is 0 the sign is +ve … However if the number is unsigned then the MSB is taken to be default as +ve and the MSB is considered and we start from 2 to the power of 8 …
To answer your second question - no , memory does not always have 8 bits … 8 bit is used as an example…

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.