Topic 1 Numbering Systems
Topic 1 Numbering Systems
Topic 1 Numbering Systems
NUMBERING
SYSTEM
NOTES
BINARY TO DECIMAL
Since binary is a base-2 system, each digit represents an increasing power of 2, with the
rightmost digit representing 20, the next representing 21, then 22, and so on. To determine
the decimal representation of a binary number simply take the sum of the products of the
binary digits and the powers of 2 which they represent.
EXAMPLES
LET’S TRY!
DECIMAL TO BINARY
NOTES
Write the decimal number as the dividend inside an upside-down "long division" symbol.
Write the base of the destination system (in our case, "2" for binary) as the divisor
outside the curve of the division symbol.
EXAMPLES
LET’S TRY!
BITS
o A single numerical unit in the binary number system.
o the basic and physical unit of information in computing and
digital communications
o Bit is short form for BInary digit.
o Computer communicate in binary language which is denoted by 0s and 1s
o can also be interpreted as logical values (true/false, yes/no), algebraic signs (+/−),
or activation states (on/off).
o The symbol for binary digit is either simply bit or lowercase b
NIBBLES
o Four bits in series, or half an 8-bit byte.
o A nibble is used to represent hexadecimal in binary.
BYTE/OCTET
o A series of eight bits.
o Since a byte is not eight bits in all computer systems, octet provides a
nonambiguous term.
o 1 character occupies 8 bits of memory.
o can represent a character or a special symbol in a character code.
o The unit symbol for the byte was designated as the upper-case letter B
WORDS
o A defined and specific number of digits grouped together.
o A collection of characters which is 16 bits in size.
DOUBLE WORDS
o Twice the length of a single computer word.
o A double word is typically 32 bits long.
1. 12 bits
12
=
4
1 nibble = 4 bits
= 3 nibbles
2. 2 words
2×16
= 1 word = 16 bits
4
1 nibble = 4 bits
= 8 nibbles
LET’S TRY!
OCTAL TO DECIMAL
1. 278
2. 125708
4. John offers to give you 478 cookies, and Jane offers to give you
4310 cookies. Whose offer do you take? If you want, go ahead and
generate the graphic for 478 graphic with the first tool.
DECIMAL TO OCTAL
CONVERT THE FOLLOWINGS
EXAMPLES DECIMAL NUMBER TO OCTAL
NUMBER.
1. 15010
2. 5910
3. 241810
LET’S TRY!
BINARY TO OCTAL
METHOD 1
Step 1:
Consider any binary number. A binary number consists of only 0's and 1's.
e.g 00110001100
Step 2:
Group all the bits in the binary number, as a set of 3 bits. Start from the right
(back)!!!
If any bit remains ungrouped in a set of 3 bits then you can add a leading '0' to it
on the left, to make it a perfect set.
000 110 001 100
Step 3:
Separate each digit and multiply with the rightmost digit representing 20, the
next representing 21, then 22, and so on.
000 110 001 100
0x22 0x21 0x20 1x22 1x21 0x20 0x22 0x21 1x20 1x22 0x21 0x20
Step 4:
Replace each 3-bit binary number set to its equivalent octal number.
000 110 001 100
0+0+0 4+2+0 0+0+1 4+0+0
0 6 1 4
Step 5:
Hence the number obtained after replacing is the equivalent octal number, OR
6148.
METHOD 2
OCTAL TO BINARY
Now the binary equivalent of 3 is 011 and 4 is 100. So the desired binary equivalent
of the octal number is 111002
SECOND METHOD
Convert octal to decimal, and then convert decimal to binary.
LET’S TRY!
Hexadecimal numbers uses digits from 0-15. Since we are working with base-16, we
have 16 digits. We've run out of digits, but we still need six more. Perhaps we could use
something like a circled 10?
HEXADECIMAL TO DECIMAL
.
EXAMPLES Convert 19FDE16 to decimal number
19FDE16
DECIMAL TO HEXADECIMAL
LET’S TRY!
HEXADECIMAL TO BINARY
SECOND METHOD
EXAMPLE: Convert 5216 to a binary number.
BINARY TO HEXADECIMAL
i. (1110)2 = E16
ii. (111001)2 = (0011 1001)2 =3916
iii. (10011100)2 = (1001 1100)2 =9C16
SECOND METHOD
Separate numbers into 4-digits in a group from the back.
If any bit remains ungrouped in a set of 3 bits then you can add a
leading '0' to it on the left, to make it a perfect set.
0101 0111
0x23 1x22 0x21 1x20 0x23 1x22 1x21 1x20
Step 2: Replace each 4-bits binary number set to its equivalent octal number.
0101 0111
5 7
THIRD METHOD
Convert binary to decimal, and then convert decimal to hexadecimal.
Step 1:
LET’S TRY!
Hexadecimal and octal cannot be converted directly into each another. You have
to convert each into DECIMAL before proceed to covert to the next one.
OCTAL TO HEXADECIMAL
The easiest way is to convert Octal to decimal and then convert the decimal to
hexadecimal.
EXAMPLES
CONVERT 5018 TO
HEXADECIMAL NUMBER.
Step 1:
Convert decimal (multiply by 8)
Step 2:
Convert to hexadecimal (divide decimal number by 16)
HEXADECIMAL TO OCTAL
The easiest way is to convert hexadecimal to decimal and then convert the decimal to
Octal.
Step 1:
Convert to Decimal (multiply by 16)
Step 2:
Convert to Octal (divide decimal number by 8)
LET’S TRY!
i. 00011010 + 00001100
0 0 0 1 1 0 1 0
+ 0 0 0 0 1 1 0 0
0 0 1 0 0 1 1 0
i. 00011010 + 00001100
0 0 0 1 0 0 1 1
+ 0 0 1 1 1 1 1 0
0 1 0 1 0 0 0 1
i. 1110110 + 1010111
1 1 1 0 1 1 0
+ 1 0 1 0 1 1 1
1 1 0 0 1 1 0 1
LET’S TRY!
i. 00100101 - 00010001
00100101
- 00010001
00010100
0 0 1 1 0 0 1 1
- 0 0 0 1 0 1 1 0
0 0 0 1 1 1 0 1
1 1 1 0 1 1 0
- 1 0 1 0 1 1 1
0 0 1 1 1 1 1
LET’S TRY!
i. 00101001 × 00000110
0 0 1 0 1 0 0 1
x 0 0 0 0 0 1 1 0
0 0 0 0 0 0 0 0
0 0 1 0 1 0 0 1
0 0 1 0 1 0 0 1
0 0 1 1 1 1 0 1 1 0
0 0 0 1 0 1 1 1
x 0 0 0 0 0 0 1 1
0 0 0 1 0 1 1 1
0 0 0 1 0 1 1 1
0 0 1 0 0 0 1 0 1
LET’S TRY!
EXERCISES
ANSWER
CONCLUSION
DECIMAL TO OCTAL
DECIMAL OTHER TYPES DIVIDED BY THEIR BASE
DIVIDE BY 8
OCTAL TO DECIMAL
OTHER TYPES DECIMAL MULTIPLIED BY THEIR BASE
MULTIPLY BY 8
CONVERT TO DECIMAL
BINARY OCTAL TO HEXADECIMAL
ANY OTHER TYPES FIRST AND THEN CONVERT
OCTAL OCTAL TO DECIMAL
EXCEPT DECIMAL DECIMAL TO THE TYPES
HEXADECIMAL DECIMAL TO HEXADECIMAL
NEEDED
MODE MODE BASE CHOOSE TYPES OF TYPE YOUR NUMBER = CHOOSE TYPES OF
NUMBER (GREEN COLOUR) NUMBER THAT YOU WANT
TO CONVERT (GREEN
COLOUR)