Determine the decimal values of the following 1's complement numbers:

  • MHB
  • Thread starter shamieh
  • Start date
  • Tags
    Numbers
In summary, the decimal values of 1's complement numbers are calculated by first finding the unsigned value and then subtracting $2^n-1$, where $n$ is the number of binary digits. This method is simpler than the one taught in the book.
  • #1
shamieh
539
0
Determine the decimal values of the following 1's complement numbers:

So i understand that if the left most bit number is a 1 it is a negative, and if it is a 0 it is poisitive. But my question is why do they start out with -511 when \(\displaystyle 2^9\) is obviously -512. Why are they adding 1 to it initially?

1011100111 = -511 + 128 + 64 + 32 + 4 + 2 + 1 = -280
 
Technology news on Phys.org
  • #2
After looking at it some more, it looks like I would say -511 + [numbers here] and I would + 1 initially, I guess that 's what "1's complacent means", similarly when it 's "2's complacent" it looks like I would not +1, but would still have a negative number if my left most bit began with a 1.

Decimal values (1’s complement)
(a) 0111011110 = 256 + 128 + 64 + 16 + 8 + 4 + 2 = 478
(b) 1011100111 = -511 + 128 + 64 + 32 + 4 + 2 + 1 = -280

Decimal values (2’s complement)
(a) 0111011110 = 256 + 128 + 64 + 16 + 8 + 4 + 2 = 478
(b) 1011100111 = -512 + 128 + 64 + 32 + 4 + 2 + 1 = -281
 
  • #3
The way I look at one's complement is to first find the unsigned value:

\(\displaystyle (1011100111)_2=1+2+4+32+64+128+512=743\)

Now count the number of binary digits, which is 10, and so subtract $2^{10}-1=1023$:

\(\displaystyle 743-1023=-280\)
 
  • #4
Wow that way is so much easier then what the book teaches.
 
  • #5


1100011001 = -511 + 256 + 128 + 2 + 1 = -124

I would like to clarify that the 1's complement representation is a way to represent negative numbers in binary form. In this representation, the leftmost bit is used as a sign bit, with 0 representing a positive number and 1 representing a negative number. The remaining bits represent the magnitude of the number.

Now, to address your question about why the numbers start with -511 instead of -512, it is important to understand that in 1's complement representation, the range of numbers that can be represented is from -(2^n - 1) to (2^n - 1) where n is the number of bits. So, for a 10-bit number, the range would be from -511 to 511.

In the examples given, we can see that the first bit is always 1, indicating a negative number. So, to find the decimal value, we need to subtract 2^n from the binary number. In this case, 2^9 is subtracted from the binary number, hence we get -511 as the starting value.

I hope this explanation helps clarify your doubts. As a scientist, it is important to understand the fundamental principles and reasoning behind mathematical representations, rather than just memorizing formulas or patterns.
 

FAQ: Determine the decimal values of the following 1's complement numbers:

What is a 1's complement number?

A 1's complement number is a binary number system in which the value of a negative number is represented by the complement of its corresponding positive number. This means that all the 0's and 1's in the binary representation of a negative number are flipped.

How do you determine the decimal value of a 1's complement number?

To determine the decimal value of a 1's complement number, first determine the sign of the number. If the first digit is 0, the number is positive, and if it is 1, the number is negative. Then, convert the remaining digits from binary to decimal. If the number is negative, subtract the decimal value from the largest possible number for that number of bits.

What is the largest possible number for a given number of bits?

The largest possible number for a given number of bits is 2^(n-1)-1, where n is the number of bits. This is because the first bit is reserved for the sign, so the remaining bits can represent all positive numbers up to 2^(n-1)-1.

Can a 1's complement number have a decimal point?

Yes, a 1's complement number can have a decimal point. The process for converting a 1's complement number to decimal is the same whether or not there is a decimal point.

Are 1's complement numbers commonly used in modern computing?

No, 1's complement numbers are not commonly used in modern computing. They were used in the early days of computing due to the limitations of computer hardware, but they have largely been replaced by other number systems such as 2's complement.

Similar threads

Replies
3
Views
1K
Replies
1
Views
1K
Replies
17
Views
1K
Replies
1
Views
872
Replies
2
Views
8K
Replies
1
Views
4K
Back
Top