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
 
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 have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
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