1's and 2's complement

10
NAME CH.SHIRAZ Presenting presentation to…. Sir Saleem

Transcript of 1's and 2's complement

Page 1: 1's and 2's complement

NAME

CH.SHIRAZ

Presenting presentation to….

Sir Saleem

Page 2: 1's and 2's complement

1’S AND 2’S COMPLEMENT

Page 3: 1's and 2's complement

COMPLEMENT

A bit with opposite value to the given one is

know as Complement in

Computer Science

Page 4: 1's and 2's complement

1’S COMPLEMENT

Subtraction of binary

numbers using the 1’s

complement method allows

subtraction only by addition.

Page 5: 1's and 2's complement

To subtract a smaller number from a larger number, the 1’s complement method is as follow.

Page 6: 1's and 2's complement

SUBTRACT (1010)2 FROM (1111) 2

Page 7: 1's and 2's complement

Subtraction of a large number from

a smaller one by the 1’s complement

method involves the following steps

a)The answer is the 1’s complement

of the result and is opposite in sign.

There is no carry.

Page 8: 1's and 2's complement

2’S COMPLEMENTThe 2’s complement of a

binary number can be

obtained by adding 1 to its 1’s

complement.

Page 9: 1's and 2's complement

SUBTRACT (1010)2 FROM (1111) 2

Page 10: 1's and 2's complement