Lab 1 Number_Systems Revision
Lab 1 Number_Systems Revision
e 0110 0101
r 0111 0010
e 0110 0101
0010 0000
a 0110 0001
r 0111 0010
e 0110 0101
0010 0000
m 0110 1101
looks strange
e 0110 0101
0010 0000
w 0111 0111
o 0110 1111
r 0111 0010
d 0110 0100
s 0111 0011
. 0010 1110
9/10/2024 3
Number Systems
Decimal Number System
9/10/2024 4
Decimal Number System
In our day-to-day life we use decimal number
system.
2 6 ---- 1
2 3 ---- 0
1 ---- 1 (1101)2
Example 2: 2310 = ( )2
9/10/2024 DCSSE, FBAS, IIUI 10
Decimal Equivalent of Binary Numbers
OR Counting in Binary Number System
Base 10 Base 2
0 000
1 001
2 010
3 011
4 100
5 101
6 110
7 111
9/10/2024 DCSSE, FBAS, IIUI 11
Octal Number System
Base is 8
8 symbols: {0,1,2,3,4,5,6,7}
Each place is weighted by the power of 8
Example: (345)8
Solved Examples
Q.1: Convert 418 to a binary number.
Solution: Given number is 418
418 = (4 * 81) + (1 * 80)
=4*8+1*1
= 32+1
= 33(Decimal number)
Now convert this decimal number into its equivalent binary number. Let us
draw a table to show the conversion of decimal to binary as given below.
Example:
(3AB)16
OR
Method 2: Step 1: HexaDecimal No. to Binary No.
Step 2: Binary No. to Octal No.
OR
Method 2: Step 1: Octal No. to Binary No.
Step 2: Binary No. to HexaDecimal No.