0% found this document useful (0 votes)
2K views4 pages

Ones Twos Complement

The document discusses one's complement and two's complement methods for representing positive and negative numbers in binary. One's complement is formed by inverting all bits in a byte. Two's complement is formed by adding 1 to the one's complement and automatically includes the sign bit. The process is demonstrated by taking the original binary value 10011001 through getting its one's complement 01100110 and then adding 1 to get the two's complement 0110011.

Uploaded by

api-297910907
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views4 pages

Ones Twos Complement

The document discusses one's complement and two's complement methods for representing positive and negative numbers in binary. One's complement is formed by inverting all bits in a byte. Two's complement is formed by adding 1 to the one's complement and automatically includes the sign bit. The process is demonstrated by taking the original binary value 10011001 through getting its one's complement 01100110 and then adding 1 to get the two's complement 0110011.

Uploaded by

api-297910907
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Ones Complement

&
Twos Complement
Ones Complement
If all bits in a byte are inverted by changing
each 1 to 0 and each 0 to 1, we have formed
the ones complement of the number.
Original One's Complement
10011001 --> 01100110
10000001 --> 01111110
11110000 --> 00001111
11111111 --> 00000000
00000000 --> 11111111
Twos Complement (Binary Additive Inverse)
The twos complement is a method for representing
positive and negative integer values in binary. The useful
part of twos complement is that it automatically includes
the sign bit.

Rule: To form the twos complement, add 1 to the ones


complement.
Step 1: Begin with the original binary value
10011001 Original byte

Step 2: Find the one's complement


01100110 One's complement

Step 3: Add 1 to the one's complement


01100110 One's complement
+ 1 Add 1
-----------
01100111 <--- Two's complement

You might also like