This topic is useful for KTU Regulation 2019 1. EET206 Digital Electronics ( ELECTRICAL AND ELECTRONICS ENGINEERING) 2. CST203 Logic System Design ( COMPUTER SCIENCE ENGINEERING) 3. ECT203 Logic Circuit Design (ELECTRONICS AND COMMUNICATION ENGINEERING) 4. EBT205 Logic Circuit and Design (BIOMEDICAL ENGINEERING) 5. ITT203 Logic System Design (INFORMATION TECHNOLOGY) 6. ECT203 Logic Circuit Design (APPLIED ELECTRONICS ENGINEERING) KTU Regulation 2015 1. EE204 Digital Electronics and Logic Design (ELECTRICAL AND ELECTRONICS ENGINEERING) 2. CS203 Switching Theory and Logic Design (COMPUTER SCIENCE ENGINEERING) 3. EC207 Logic Circuit Design (ELECTRONICS AND COMMUNICATION ENGINEERING) 4. EC207 Logic Circuit Design (APPLIED ELECTRONICS ENGINEERING AND INSTRUMENTATION) 5. IC207 Design of Logic Circuit (BIOMEDICAL ENGINEERING) FOR FULL CLASSES : https://youtube.com/playlist?list=PL2UV2EJdMQmgLuA8dwLY7-4DsbNQTsUOg #digitalelectronics#ktu#eee#electrical#cse FOR FULL CLASSES : https://youtube.com/playlist?list=PL2UV2EJdMQmgLuA8dwLY7-4DsbNQTsUOg #digitalelectronics#ktu#numberconversion
Hello students
Today we are going to discuss
Decimal to Octal Conversion and
Decimal to Hexadecimal Conversion
in Number Conversion Technique
Decimal to any base
we have discussed in
Decimal to Binary Conversion
in previous classes
First, let us see
Decimal to Octal Conversion
First question
Convert 192 to the base 10
to Octal
We need to convert
decimal to octal
We have studied
Double Dabble Method
Double
Dabble Method
In Double Dabble Method
Decimal to Binary Conversion
Successive Division by 2
This question is
Decimal to Octal Conversion
We need to do
Successive Division by 2
But what is the base of octal?
8
Successive Division by 8
is the base of
Decimal to Octal Conversion
First, write 192
Divide it by 8
How many times
8 goes in 192?
2 times in 19
16
4 times in 32
Reminder
What is the reminder
in the first case?
8
8, 3, 24
Reminder
0
What to do next?
We need to count
from the last reminder
We have done in
Decimal to Binary Conversion
But,
Since it is binary,
Divide by 2
Since it is octal,
Divide by 8
798 to the base 8
This is the answer
Our second question
I need to convert 798 to the base 10
to octal
It is a double-double method
Write 798
8
9 times
72
9 times
Reminder
6
Divide by 8
8 to 16
Reminder
3
8 times
Reminder
4
Our answer
1, 4, 3, 6 to the base
8
This means
fractions are not coming
How to solve
fractions?
Let's see a problem
This is a question
with fractional part
Convert 0.015625
to the base 10 to octal
How to solve?
Continuous multiplication by 8
In case of 8,
convert the decimal value to octal
That's why
we need to multiply by 8
Write the question again
0.015625
into
8
multiply by 8
0.125
will be the answer
0.125
Again
0.125
We need to take the number
after the decimal point
multiply by 8
What will we get?
1.00
We need to do this
until we get the zero value
Stop here
We need to count
first to last
Our answer
is
0.01
to the base 8
The octal value of
0.015625 to the base 10
is 0.01 to the base
8
Decimal to octal conversion
You understood the case
where the decimal point comes
Let's see
how to do
decimal to hexadecimal conversion
First question
In decimal to hexadecimal conversion
I need to convert 798 to the base 10
into hexadecimal
This is also a successive division
by 16
In case of decimal to any conversion
we need to divide
We need to convert it
to that value
In case of binary
we need to divide by 2
In case of octal, we need to divide by 8
In case of hexadecimal, we need to divide by 16
Let's write the question
798
We need to divide it
by 16
Rest of the rules are same
as for octal and binary
Here 16 is the only number
In 16
How many times will it go?
79
16 into 4 is 64
15
8
158
16
9 times
16 into 9
144
Reminder
14
16
3 times
48
Reminder
14
8