Lecture#5 Jan2023
Lecture#5 Jan2023
Step 4. Step 3.
After processing, the binary The signal for the capital
code for the capital letter D letter D is converted to its
is converted to an image, and ASCII binary code
displayed on the output (01000100) and is stored in
device. memory for processing.
Understanding Number Systems
• A number system is a system representing
numbers.
• It is also called the system of numeration and it
defines a set of values to represent a quantity.
• The value of any digit in a number can be
determined by a digit, its position in the number,
and the base of the number system.
• The numbers are represented in a unique manner
and allow us to operate arithmetic operations like
addition, subtraction, and division.
Types of Number Systems
• There are different types of number systems in
which the four main types are as follows.
• Binary number system (Base - 2)
• Octal number system (Base - 8)
• Decimal number system (Base - 10)
• Hexadecimal number system (Base - 16)
Types of Number Systems
Conversion between Systems
• A number can be converted from one number
system to another number system using number
system formulas.
• Typically, we need to learn how to convert numbers
between Binary and Decimal Number Systems
• Since, this type of conversion will be used mostly in
Computer operations.
Conversion of Binary to Decimal
Number System
• To convert a number from the binary to the decimal
system, we use the following steps:
• Step 1: Multiply each digit of the given number, starting
from the rightmost digit, with the exponents of the base
(e.g., base of Binary Number System is 2).
• Step 2: The exponents should start with 0 and increase
by 1 every time we move from right to left.
• Step 3: Simplify each of the above products and add
them.
Conversion of Binary to Decimal
Number System
• Example: Convert 1001112 into the decimal system.
• Solution:
• Step 1: Identify the base of the given number. Here, the
base of 1001112 is 2.
• Step 2: Multiply each digit of the given number, starting
from the rightmost digit, with the exponents of the
base.
Conversion of Binary to Decimal
Number System
Conversion of Binary to Decimal
Number System
• Step 3: We just simplify each of the above products
and add them.
Conversion of Binary to Decimal
Number System
100111 = (1 × 25) + (0 × 24) + (0 × 23) + (1 × 22) + (1 × 21) + (1 × 20)
= (1 × 32) + (0 × 16) + (0 × 8) + (1 × 4) + (1 × 2) + (1 × 1)
= 32 + 0 + 0 + 4 + 2 + 1
= 39
Thus, 1001112 = 3910.
Conversion of Decimal Number System to
Binary / Octal / Hexadecimal Number System
• Example: Convert 432010 into the octal system.
• Solution:
• Step 1: Identify the base of the required number. Since
we have to convert the given number into the octal
system, the base of the required number is 8.
• Step 2: Divide the given number by the base of the
required number and note down the quotient and the
remainder in the quotient-remainder form.
• Repeat this process (dividing the quotient again by the
base) until we get the quotient less than the base.
Conversion of Decimal Number System to
Binary / Octal / Hexadecimal Number System
Conversion of Decimal Number System to Binary /
Octal / Hexadecimal Number System
1 2 7 4
Types of Encoding
Techniques