Number System_notes
Number System_notes
Each number system has a base also called a Radix. A decimal number system is a
system of base 10; binary is a system of base 2; octal is a system of base 8; and
hexadecimal is a system of base 16.
S.no Number System Base Symbols or digits used
1 Binary 2 0,1
2 Octal 8 0,1,2,3,4,5,6,7
3 Decimal 10 0,1,2,3,4,5,6,7,8,9
4 Hexadecimal 16 0,1,2,3,4,5,6,7,8,9, A, B, C, D, E, F
where A = 10; B = 11; C = 12; D =
13; E = 14; F = 15
Answer : (11000000111001)2
Answer (30071)8
Convert the Decimal number 125 into its Octal equivalent.
125 / 8 = 15 5
15 / 8 = 1 7
1/8=0 1
Answer: (175)8
Answer: (3039)16
1 x 25 + 0 x 24 + 1 x 23 + 0 x 22 + 1 x 21 + 1 x 20
32 + 0 + 8 + 0 +2 + 1 = (43)10
Binary fraction to decimal conversion
Example:
Convert (11011.101)2 to decimal
1 1 0 1 1 .1 0 1
= (1 x 24)+ (1 x 23)+ (0 x 22)+ (1 x 21)+ (1 x 20)+ (1 x 2-1)+ (0 x 2-2)+ (1 x 2-3)
= 16+8+0+2+1+0.5+0+0.125
= (27.625)10
An easy way to convert from binary to octal is to group binary digits into sets of
three, starting with the least significant (rightmost) digits.
Binary :11100101
11 100 101
Pad the most significant digits with zeros if necessary to complete a group of
three.
Binary= 011 100 101
Octal = 3 4 5 = 345
Answer=(345)8
An easy way to convert from binary to hexadecimal is to group binary digits into
sets of four bits, starting with the least significant (rightmost) digits.
Example
Binary:11100101 =1110 0101
Answer: E5 16
CONVERTING A NUMBER FROM OCTAL NUMBER TO OTHER
NUMBER SYSTEM
Method to convert Octal to Decimal:
1. Start at the rightmost bit.
2 . Take that bit and multiply by 8n where n is the current position beginning at 0
and increasing by 1 each time. This represents the power of 8.
3. Sum each of the product terms until all bits have been used.
Example:
Convert the Octal number 321 to its Decimal equivalent.
3 * 82 + 2 * 81 + 1 * 80
192+16+ 1 = (209)10
Octal fraction to decimal conversion:
Example:
Convert (23.25)8 to decimal
= (2 x 81)+ (3 x 80)+ (2 x 8-1)+ (5 x 8-2)
= (16 + 3 ) + (0.25 + 0.07812)
= (19.32812)10
Octal fraction to binary conversion:
To convert from octal to binary, we simply represent each octal digit in its 3 bit
binary form.
Example:
Convert the Octal number (742)8 to its Binary equivalent.
7|4|2
111 | 100 | 010
Answer: (111100010)2