Module 4 - Number System
Module 4 - Number System
Module 4 - Number System
Module 4
1. Binary Numbers
2. Decimal Numbers
3. Octal Numbers
4. Hexadecimal Numbers
5. Additions & Subtractions of Number
Systems
6. Number Conversions
Introduction:
= 32 + 8 + 2
= 4210
Example: Binary - decimal Numbers
= 4 + 1 + 0.25
= 5.2510
Binary to Octal Numbers:
11010102 = ?8
3rd group 2nd group 1st group
1101.012 = ?8
2nd group 1st group 1st group
= 6 A16
= 6A16
Example of Binary to Hexadecimal Numbers:
= D . 416
= D.416
Decimal to Binary Numbers:
remainder
= 6/2 0
In reading the
= 3/2 1 answer, you
should read it
= 1/2 1 upward.
= 0/2
Example of Decimal to Binary Numbers:
6.62510 = ?2
You will be multiplying
only the decimal numbers
= 110.1012 with base 2 until you
reach 0 in the decimal
place.
= .625*2
= 1.25*2 1
In reading the
= 0.25*2 0 answer, you
should read it
= 1.0 1 Stop here, because it is downward.
already 0
Decimal to Octal Numbers:
6610 = ?8
remainder
= 66/8 2 In reading the
answer, you
= 8/8 0 should read it
upward.
= 1/8 1
= 0/8
Example of Decimal to Octal Numbers:
66.62510 = ?8
You will be multiplying
only the decimal numbers
with base 8 until you
= 102.58 reach 0 in the decimal
place.
= 11E16
In reading the
answer, you
remainder should read it
= 286/16 14 upward.
286.62510 = ?16
You will be multiplying
only the decimal numbers
= 11E.A16 with base 8 until you
reach 0 in the decimal
place.
= 448+ 48 + 1
= 49710
Example of Octal to Decimal Numbers:
= 56+48+1+0.125+0.125
= 761.2510
Octal to Binary Numbers:
4 2 1
= 6 110
= 1 001 4 2 1
761.258 = ?2
4 2 1 4 2 1 4 2 1 4 2 1 4 2 1
7618 = ?16
= 1F116
Example of Octal to Hexadecimal Numbers:
761.758 = ?16
= 1F1.F416
Hexadecimal to Binary Numbers:
7AE316 = ?2
= 7 0111
A 1010
E 1110
3 0011
7AE.316 = ?2
= 7 0111
A 1010
E 1110
3 0011
7AE316 = ?8
= 7 0111
A 1010
E 1110
3 0011
= 753438
Example of Hexadecimal to Octal Numbers:
7AE.316 = ?8
= 7 0111
A 1010
E 1110
3 0011
= 3656.148
Hexadecimal to Decimal Numbers:
• Each hexadecimal position is weighted with a power of
16.
• Digits on the left side of the radix point has a positive
exponent while on the right side of the radix point has a
negative exponent.
• Converting a hexadecimal number to a decimal number
is done by successively multiplying the decimal number
by 16 on the left side of the radix
• If you will have a fractional part of the given decimal,
successively multiplying the decimal number by 16 on
the right side of the radix.
Hexadecimal to Decimal Numbers:
286.A16 = ?10
2 1 0 -1
= 286.A
= 646. 62510
Example Hexadecimal to Decimal Numbers:
286A16 = ?10
3 2 1 0
= 286A
= 1034610
Summary
1. Significance of the number systems to
computer study.
2. Different number systems
3. Performing basic mathematical operations
on different number systems.
4. Convert from one number system to
another