EE
EE200
200
200(class
class
class 2-1)
Prof. M.M. Dawoud
Prof. M.M. Dawoud
1of
of
of
of 4
EE200 DIGITAL LOGIC CIRCUIT DESIGN
Class Notes
CLASS 2-1
The material covered in this class will be as follows:
•
Complements
•
Subtraction using complements.
Decimal number complements:
9’s complement of the decimal number N = (10
n
– 1) – N
= n (9’s) – N
i.e. {subtract each digit from 9}
Example
9’s complement of
134795
is
865204
Similarly
1’s complement of the binary number N = (2
n
-1) – N = n (1’s) – N
Example
1’s complement of 110100101 is 001011010
which can be obtained by replacing each one by a zero and each
zero by one.
r’s complement:
10’s complement of the decimal number N
=
10
n
– N = (r-1)’s
complement + 1
Example
10’s complement of 134795 is 865205
Example
find the 9’s and 10’s complements of 314700.
Answer
9’s complement = 685299

This
** preview**
has intentionally

**sections.**

*blurred***to view the full version.**

*Sign up*
EE
EE200
200
200(class
class
class 2-1)
Prof. M.M. Dawoud
Prof. M.M. Dawoud
2of
of
of
of 4
10’s complement=685300
Rule:
To find the 10’s complement of a decimal number leave all
leading zeros unchanged. Then subtract the first non-zero digit

This is the end of the preview.
Sign up
to
access the rest of the document.