Understanding 2's Complement w/ 4 Bits

  • Thread starter Thread starter ECE
  • Start date Start date
  • Tags Tags
    Bits
AI Thread Summary
In 2's complement representation with 4 bits, the range of numbers is from -8 to +7, rather than 0 to 15, because the system allocates half of the values for negative numbers. With 4 bits, a total of 16 different values can be represented, but 2's complement uses the highest bit as a sign bit, limiting the positive range. This means that while unsigned representation can show values from 0 to 15, 2's complement focuses on balancing positive and negative values. The confusion arises from misunderstanding the difference between unsigned magnitude and signed representation. Understanding this distinction clarifies why the range is limited in 2's complement.
ECE
Messages
7
Reaction score
0
Why in 2's complement the range of numbers that can be represented with 4 bits are from -8 to +7? Wouldn't the numbers with 4 bits be till 15? I am confused.Please help me out.

-Thankyou
 
Last edited:
Engineering news on Phys.org
With four bits, you can store 16 different values. You make them represent 0 through 15, which is called unsigned magnitude, or you can make them represent -8 through +7, which is called 2's complement. You cannot represent all the numbers from, say, -8 to +15, because you do not have enough bits.

- Warren
 
While I was rolling out a shielded cable, a though came to my mind - what happens to the current flow in the cable if there came a short between the wire and the shield in both ends of the cable? For simplicity, lets assume a 1-wire copper wire wrapped in an aluminum shield. The wire and the shield has the same cross section area. There are insulating material between them, and in both ends there is a short between them. My first thought, the total resistance of the cable would be reduced...
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I am not an electrical engineering student, but a lowly apprentice electrician. I learn both on the job and also take classes for my apprenticeship. I recently wired my first transformer and I understand that the neutral and ground are bonded together in the transformer or in the service. What I don't understand is, if the neutral is a current carrying conductor, which is then bonded to the ground conductor, why does current only flow back to its source and not on the ground path...
Back
Top