004 Number System
004 Number System
004 Number System
MSB
ANSWER: (101101)2
• (79)10 to ( ? )2
• (30)10 to ( ? )2
❖ Multiply each bit of binary number by its place value i.e. 2n
❖ Add the result.
1 0 1 0 1 1 0 1
27 26 25 24 23 22 21 20
128 0 32 0 8 4 0 1
ANSWER: (173)10
Do by Yourself……..
• ( 11110110) 2 to ( ? ) 10
• ( 101010110101) 2 to (?) 10
❖ You can convert a decimal number to its octal form by using the
method of successive division by 8, the radix of the octal
number system.
❖ Put the remainder to the right of quotient and repeat this
process till the quotient becomes ZERO.
❖ Write down the remainders in reverse order to get equivalent
octal number.
LSD
MSD
ANSWER: (135)8
• (173) 10to ( ? ) 8
• (243) 10to ( ? ) 8
❖ Multiply each bit of octal number by its place value i.e. 8n
❖ Add the result
2 3 7
82 81 80
128 24 7
ANSWER: (159)10
❖ You can convert a decimal number to its octal form by using the
method of successive division by 16, the radix of the
hexadecimal number system.
❖ Put the remainder to the right of quotient and repeat this
process till the quotient becomes ZERO.
❖ Write down the remainders in reverse order to get equivalent
hexadecimal number.
LSD
A=10
B=11, and so on.
..
MSD
ANSWER: (B2)16
• (233) 10to ( ? ) 16
• (7 9 ) 10to ( ? ) 16
❖ Multiply each bit of hexadecimal number by its place value i.e.
16n
❖ Add the result
A 2 B
162 161 160
2560 32 11
ANSWER: (2603)10
• As number of bits increases, there is a need arises of grouping
of bits.
• Octal number comprises of 3 bits i.e. 3 binary bits are used to
represent octal number.
OCTAL BINARY
0 000
1 001
2 010
3 011
4 100
5 101
6 110
7 111
3 5 2
011 101 010
ANSWER: (011101010)2
• (237) 8to ( ? ) 2
• (206) 8to ( ? ) 2
• It requires grouping of 3 bits from right hand side, if last group
not consists of 3 bit then add 0 to make it group of 3 bit
3 2 6 6
3 0011 D 1101
0100 E 1110
4
F 1111
5 0101
6 0110
7 0111
8 1000
9 1001
8 B C 2
1000 1011 1100 0010
ANSWER: (1000101111000010)2
•(CAFE) 16 to ( ? ) 2
• (78 F 9 ) 16 to ( ? ) 2
• It requires grouping of 4 bits from right hand side, if last group
not consists of 4 bit then add 0 to make it group of 4 bit
6 B 6 6
• ( 110011110001101) 2 to ( ? ) 16
Octal to hexadecimal
conversion
While converting from octal
to hexadecimal unit, it is a usual practice
to convert the octal to hexadecimal by
converting the octal number into binary
digit and then further to from binary to
hexadecimal.
For example to convert the number 536
from octal to hexadecimal.
Example
0 1 0 1 0 0 0 0
CONTROL CODE
• 2 OCTET (16 BIT REPRESENTATION)
• First 3 bits (left most) of first octet will be 110
• First 2 bits (left most) of second octet will be 10
• For Example ( U + 00A7) (Binary value of is 10100111)
EMPTY BITS
1 1 0 0 0 0 1 0 OCTET 1
1 0 1 0 0 1 1 1 OCTET 2
• 3 OCTET (24 BIT REPRESENTATION)
• First 4 bits (left most) of first octet will be 1110
• First 2 bits (left most) of second octet will be 10
• First 2 bits (left most) of third octet will be 10
• For Example ( U + 203B)
• (Binary value of ※ is 10000000111011)
EMPTY BITS
1 1 1 0 0 0 1 0 OCTET 1
1 0 0 0 0 0 0 0 OCTET 2
1 0 1 1 1 0 1 1 OCTET 3
• 4 OCTET (32 BIT REPRESENTATION)
• First 5 bits (left most) of first octet will be 11110
• First 2 bits (left most) of 2nd , 3rd , 4th octet will be 10
• For Example ( U + 12345)
• (Binary value of is 00010010001101000101)
𒍅 EMPTY BIT
1 1 1 1 0 0 0 0
OCTET 1
1 0 0 1 0 1 0 0
OCTET 2
1 0 0 0 1 1 0 1
OCTET 3
1 0 0 0 0 1 0 1
• It is fixed length encoding scheme that uses exactly 4 bytes to
represent all Unicode characters.
• It stores every character using 4 bytes
• Example: Consider the Symbol * [U+002A binary-00101010]
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 1 0 1 0 1 0