CFP 6.1 Number System
CFP 6.1 Number System
CFP 6.1 Number System
Positional value: 28 27 26 25 24 23 22 21 20
256 128 64 32 16 8 4 2 1
3. Octal: base = 8 digits are: 7,6,5,4,3,2,1,0
Example:
1012 = 1x22 + 0x21 + 1x20
=4+0+1
=5
3. Decimal – Octal conversion
When converting from decimal to octal, we divide the decimal number
by eight and note the remainders after each division.
Example:
Divisions Quotients Remainders
18/8 2 2
2/8 0 2
Therefore:
1810 = 228
4. Octal – Decimal conversion
To convert from octal to decimal, multiply each octal digit by its
positional value and add the resulting products.
Example:
258 = 2x81 + 5x80
= 16 + 5
= 2110
5. Octal – Binary conversion
The use of octal numbers lies in octal-binary conversions. The
relationship between octal numbers and binary numbers is given in Table.
With this tabulation, any octal number (up to 7) may be converted to its
binary equivalent. Each octal digit is converted one at a time to its binary
equivalent.
Binary 000 001 010 011 100 101 110 111
number
Octal 0 1 2 3 4 5 6 7
Number
Example:
458 = (?)2
Since 48 = 1002 and
58 = 1012 Therefore:
458 = 1002 1012
6. Binary – Octal conversion
Group the bits in threes, starting at the binary point,
working both ways, then converting each group of three to its
octal equivalent. Zeroes are added to each end to make
complete group.
Example:
Therefore:
5810 = 3A16
8. Hexadecimal – Decimal conversion
To convert from any numbering system to the decimal system;
multiply each digit by its positional value and then obtain the sum. Note
convert hexadecimal digits to their equivalent counterpart.
Decimal Number Hexadecimal Number
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 A
11 B
12 C
13 D
14 E
15 F
Example:
4B616 = 4x162 + 11x161 + 6x160
= 1024 + 176 + 6
= 120610
9. Hexadecimal – Binary conversion
The conversion from hexadecimal to binary is a simple procedure and
easily done by replacing each hexadecimal digit by its 4-bit equivalent.
Example:
2C8516 = 101100100001012
Since:
Hexadecima 0 1 2 3 4 5 6 7 8 9 A B C D E F
l Number
Example:
1011101100100112 = 0101 1101 1001 00112
or 5D9316