Question #137423

How many bits would be required to represent decimal numbers from -32,768 to +32,767?


Expert's answer

We need to represent 65536 decimal numbers in total (32768 negative integers, zero and 32767 positive numbers). The number of bits required to represent 65536 integers is log⁡265536=16\log_{2}{65536}=16.


LATEST TUTORIALS
APPROVED BY CLIENTS