You are on page 1of 8

Lecturer Mahdia Tahsin

COMPLEMENTS
TYPES OF COMPLEMENTS

Binary Decimal
r’s com - 2’com 1’com
(r-1)’s com - 10’ com 9’s com
r’S COMPLEMENT

N= positive number
R= base
n = no of integer digit
So formula…. r ^ n – N
(r-1)’S COMPLEMENT

N= positive number
R= base
n = no of integer digit
m = no of fraction digit
So formula…. r ^ n – r^(-m) - N
PRACTICE

Examples Given in Book.


Discuss the shortcut method.
Subtraction

Subtraction with r’s complement


SUBTRACTION WITH (r-1)’S COMPLEMENT
SUBTRACTION WITH (r-1)’S COMPLEMENT

You might also like