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 Binary Conversion Techniques
Decimal to Binary Conversion can be done using two methods
We are going to use double-double method
Let's see what is double-double method
In order to convert decimal integer number to binary integer number, we have to do successive division by 2
We have to divide continuously by 2
We have to divide continuously by 2 until we get quotient 0
In decimal to binary conversion technique, we are using double-double method
In double-double method, we have to do successive division by 2
We have to divide continuously by 2 until we get quotient 0
This method is for decimal integer number
But there will be fractions in this method
The question is how to convert decimal fraction to binary fraction
This is not a fractional problem
We are doing successive division by 2 when we have a normal decimal integer problem
In order to convert decimal fraction to binary fraction, we have to do successive division by 2
You will understand how to do it when you solve problems
Let's do a question
I have to convert 52 to the base 10 to binary
I have to convert decimal integer number to binary integer number
In double-double method, we have to do successive division by 2
Write 52 and divide it by 2 continuously
How many times will 2 go in 12? 6 times
Reminder is 0
Write reminder
Divide it by 2 again
Reminder is 0
Divide it by 2 again
Reminder is 1
Divide it by 2
Reminder is 0
Divide it by 2
Reminder is 1
We have done till the quotient 1
Now we have to give value from bottom to top
I have used double-double method to convert 52 to the base 10 to binary
We have to start from last reminder and go to first
My answer is 110100 to the base 2
This is my answer
What is the base of decimal number system?
Base of decimal number system is 10
We have studied in introduction class
Numbers will come from 0 to 9
Since total digits are 10, base of decimal number system is 10
To convert decimal number system to binary, successive division by 2 is required
Divide it by 2 continuously
Start from last reminder and go to first reminder
Write in terms of binary
Give to the base 2
This is our answer
Let's see the next question
I have to convert 26 to the base 10 to binary
Successive division by 2 is required
How many times in 6? 3 times
Reminder 0
Put it aside
Divide by 2
26 x 12
Reminder 1
Divide by 2
23 x 6
Reminder 0
Divide by 2
21 x 2
Reminder 1
Start from last reminder and go to first reminder
Our answer is 11010 to the base 2
Let's see the decimal fraction case
We have studied decimal integer case
Let's see the decimal fraction case
First question
I have to convert 0.75 to the base 10 to binary
Successive multiplication is used in double double method
Write it down
0.75 x 2
5 x 10
7 x 14
1.50
Take the value after decimal
0.50 x 2
5 x 10
2 Decimal
Answer is 1.00
We have to do this process until we get the value after decimal
We have got two zeros after decimal
So, we have to stop this method
When we say successive division, we start from last reminder
When we say successive multiplication, we start from first to last
We are taking the values before decimal
We are taking these values
We are counting from top to bottom
11.11 to the base
Let's see one more question
24.25 to the base 10
I have to convert it to binary
We have studied how to do it before decimal
Successive division by 2
Write down 24
Divide by 2
212
224
Reminder is 0
Divide by 2
26 x 12
Reminder is 0
23 x 6
Reminder is 0
212
Reminder is 1
Write down the answer
The answer is 11000
We have to do this process before decimal
0.25 x 2
The answer is 0.50
Again 0.50 x 2
We get 1.00
We have to take the values before decimal
We have to count from top to bottom
The answer is 01
We can give this to others
The answer is 11000.01
To the base is 2
Let's see one more question
95 divided by 2
248
27 x 14
Reminder is 1
224
236
Reminder is 1
212
Reminder is 1
2510
Reminder is 1
224
Reminder is 1
212
Reminder is 0
We have to count from the last integer
Write the part before fraction
1011111
After decimal
0.15 x 2
The answer is 0.30
Again 0.30 x 2
We get 0.60
0.60 x 2
We get 1.20
0.20 x 2
The answer is 0.40
0.40 x 2
We get 0.80
0.80 x 2
We get 1.60
We can stop here
We have to count the values before decimal
The answer is 0.01
0.01
To the base is 2
We have discussed two cases
We have understood how to solve decimal fraction case and decimal integer case using double double method
See you in the next class
Thank you