Professional Documents
Culture Documents
COMFUN 1200 Unit III
COMFUN 1200 Unit III
COMFUN 1200 Unit III
To
Number Systems
ComFun1200 Lecture
Why use different number
systems?
Different
number systems differ in the
manner they represent information
Humans use letters and decimal numbers (0
- 9) to represent information
Computers processes information using 1’s
and 0’s (binary)
It
is necessary to know how information is
converted from one system to another
History of Number Systems
Tally
Babylonian
Egyptian
Mayan
Roman
Hindu-Arabic
Non-Positional vs. Positional
Number Systems
Non-Positional
A symbol has the same value regardless of
its position in the representation
Positional
Value of the digit is determined through:
The digit itself
The position of the digit in the number
The base of the number system
Non-Positional vs. Positional
Number Systems (cont..)
Tally Number System
III
Decimal Number System
111
Understanding Positional
Number Systems
Radix or Base
Defines the number of symbols used in the
number system
Base 10 (Decimal) – 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Base 2 (Binary) – 0, 1
1. 43210 -> N2
2. 69810 -> N8
3. 103410 -> N16
Other Conversions
N2 <-> N8
Example: 11101011012 -> N8
Other Conversions (cont..)
N2 <-> N16
Example: 11011011102 -> N16
Other Conversions (cont..)
Exercises:
1. 72348 -> N2
2. 3CF516 -> N2
3. 110111012 -> N8
4. 10001011102 -> N16
Non-Decimal to Another Non-
Decimal Base
Rule: For other cases of number system
conversions not stated in the earlier
methods, use the decimal or binary
representation as an intermediate form.
N8 to N10
Example: 5678 -> N10
N8 to N10
Exercise: 6248 -> N10
N16 to N8
Example: 1A216 -> N8
N16 to N8
Exercise: B6F16 -> N8
Assignment
1. 1001112 -> N10
2. 51778 -> N10
3. BA02C16 -> N10
4. 31710 -> N2
5. 613810 -> N8
6. 854010 -> N16
7. 1110110112 -> N8
8. 10110111011102 -> N16
9. 76228 -> N16
10. E87AF16 -> N8
Addition in Different Number
Systems
Rule:
1. 110112 + 11002
2. 10012 + 11002 + 1112
3. 41678 + 20238
4. 6218 + 2148 + 558
5. 3AB116 + ACF016
6. 41A16 + D0416 + B616
Subraction in Different Number
Systems
Rule:
1. 1010012 – 101112
2. 41538 – 26778
3. C87A16 – 9B6E16
2’s Complement Notation
Used for signed(+/-) number operations
Negative numbers are represented using the
2’s complement method in computing
Subtractions can be performed as additions
making subtraction circuits unnecessary
2’s complement is characterized by:
A fixed number of bits to represent numbers.
The most significant bit is called the sign bit(0 for
positive and 1 for negative).
2’s Complement Notation
(cont..)
2’s Complement Notation
(cont..)
Addition using the
2’s Complement Notation