please read with patience..... FOR THOSE PEOPLE WHO WONDER WHY WE APPLY THIS RULE (LEFT SHIFT 3 TIMES AND ADD 3) this rule is just as same as adding 0110 (i.e)6 to the binary number to get the decimal number we know that BCD has only 10 representations (i.e) from 0 to 9 . while performing bcd addition which is same as binary addition , if we get a binary result greater than 1001 (9) we simply add it by 0110 (6) to get BCD now consider a number greater than 1001 (9) say 1010 (ten), to simply determine that this number is greater than 1001 we can just look at the first three digits 101 in 1010(ten) 101 is 5 in decimal 101 in 1011(eleven) 101 is 5 in decimal 110 in 1100(twelve) 110 is 6 in decimal 110 in 1101(thirteen) 110 is 6 in decimal 111 in 1110(fourteen) 111 is 7 in decimal 111 in 1111(fifteen) 111 is 7 in decimal on the other hand take a number less than 1001 (9) say 1000 (8) here the first three digits are 100 which is 4 in decimal so now we can come to a conclusion that those binary numbers that have their first three digits greater than 4 i.e. 100 has to be added with 0110 (six) in normal method in this method we do the same by extracting the first three digits by simply left shifting it three times and then if it is greater than 100 (4) then we add it by three (011) here comes the doubt , that why are we adding three instead of six the reason is here we have extracted the first three digits only and ignored the fourth digit which is also a part of the binary number...... in the same way we ignore the fourth digit in 0110 (6) to get 011 (3) in the above example we add 011 to 111 which is greater than 100 (4) without ignoring the fourth bit (i.e) if you add 0110 to 1111 (which is the actual question) you get the same BCD number as 10101 which is the answer RULE 1: SHIFT THE BINARY NUMBER LEFT THREE TIMES (NOT MORE THAN THAT) RULE 2: CHECK IF THE FIRST THREE DIGITS ARE GREATER THAN FOUR . RULE 3: IF THE FIRST THREE DIGITS ARE GREATER THAN 100 ADD 011 TO THEM . RULE 4: ELSE LEAVE THEM BE .(AS IT WILL ALREADY BE IN THE DESIRED BCD FORMAT)
the best method for converting binary to bcd is to add 6(0110) to the binary code of above 9. the binary and bcd codes are same for the digits upto 9. for example: decimal number(15)=1111 binary 15 is greater than 9 so add 6(0110)to it. 1111+0110=10101 we can write it as 0001 0101 1 5 in this way ,we can convert binary code to bcd code..
Thanks for this, but you haven't explained the significance of the rule "if it's greater than 4 then add 3". The mechanics are easy to follow but I'm lost on the reasoning.
This is same as the add 6 method. Only difference is that we are doing the operations with the three most significant bits. (1) Reason for add 6 method: 4 bits contain 16 numbers [0-15] (2) When to add 6, when the 4 bits are greater than 9 ---- - If the 4 bits are greater than 9, then the first 3 bits are greater than 4. (When we eventually "shift" the last bit, we are multiplying by 2 and adding either a '0' or a '1'.) - If we add 6 to 4 bits, it is the same as adding 3 to the most significant 3 bits. (because as above. in the shift operation, we will be multiplying by 2)
i can explain it to u , Decimal digit BCD 0 - 0 0 0 0 if u look at this chart and observe only the first three digits from left 1 - 0 0 0 1 2 - 0 0 1 0 u can see that none of them is greater than 4 3 - 0 0 1 1 4 - 0 1 0 0 for 9 the three left most bits 1 0 0 equals 4 5 - 0 1 0 1 6 - 0 1 1 0 10 - 1010 , if u look at left most three digits of 10 , 101 equals 5 , 7 - 0 1 1 1 8 - 1 0 0 0 hence a if three leftmost bits are greater than 4 , it indicates that the orignal 9 - 1 0 0 1 binary number is greater than 9 which is invalid , hence we add 3 .
It doesn't work for every number like for 20. 20 in binary is 10100 + 0110 = 11010 which is not 20 in BCD. We'll again have to add 6 to get the correct answer in BCD
@@nd685 Actually we need to add 6 once if it is for 4 digit number ..here as 20 is 5 digit binary number we need to add 6 for 2 times .....Anyway the method used in previous video is simpler than this method
That's very subjective. it doesn't work for everyone's situation. I am building a calculator and need to understand this process, as the quickest process is binary to BCD direct conversion, before I can output to a 7 Segment display. All my numbers must be carried in a form of binary, so this is a great video for me.
One example is not enough to understand......I tried with another example decimal number 18 It has binary equivalent 10010. It has BCD 00011000. After applying this method I got 11 in tens and 110 in ones and nothing in decimal column. Please help me...
See, you have to add 3 when shifted number is greater than 4 only, Original no. 10010 Shift 1: 1 | 0010 Shift 1: 10 | 010 Shift 1: 100 | 10 (equal to 4 but not greater) Shift 1: 1001 | 0 Now it is greater than 4 Add 3 - 11 1001 + 11 = 1100 1100 | 0 Shift 1: 1 | 1000 | - (stop) We get : 0001 1000 (18)
Hi sir I bit confused about this method can u explain for decimal number 68 or 36 , u said that in ones column binary should be greater then 4(100) , so if i shift again then it comes 8(1001) for 36 then shift binaty it gives tens 10 & ones 1100 after add 3 (011) & shifti ,pls give solution for this
Yes follow same method, take 100s,10s and 1s coloumns and in every coloum if the number reaches greater than 4 add 3(for 153 u have to add 3 in 1s coloumn for 4 times and in 10s coloumn for 1 time) and shift u will get the correct answer
That was so cool, only one suggestion 1111 = 15 and your final number was 0001 0101 that means 1 5, that's correct only you said 16 but is 15
he said 15, it just looks like 16
please read with patience.....
FOR THOSE PEOPLE WHO WONDER WHY WE APPLY THIS RULE (LEFT SHIFT 3 TIMES AND ADD 3)
this rule is just as same as adding 0110 (i.e)6 to the binary number to get the decimal number
we know that BCD has only 10 representations (i.e) from 0 to 9 .
while performing bcd addition which is same as binary addition , if we get a binary result greater than 1001 (9) we simply add it by 0110 (6) to get BCD
now consider a number greater than 1001 (9) say 1010 (ten), to simply determine that this number is greater than 1001 we can just look at the first three digits 101 in 1010(ten) 101 is 5 in decimal
101 in 1011(eleven) 101 is 5 in decimal
110 in 1100(twelve) 110 is 6 in decimal
110 in 1101(thirteen) 110 is 6 in decimal
111 in 1110(fourteen) 111 is 7 in decimal
111 in 1111(fifteen) 111 is 7 in decimal
on the other hand take a number less than 1001 (9) say 1000 (8)
here the first three digits are 100 which is 4 in decimal
so now we can come to a conclusion that those binary numbers that have their first three digits greater than 4 i.e. 100 has to be added with 0110 (six) in normal method
in this method we do the same by extracting the first three digits by simply left shifting it three times
and then if it is greater than 100 (4) then we add it by three (011)
here comes the doubt , that why are we adding three instead of six
the reason is here we have extracted the first three digits only and ignored the fourth digit which is also a part of the binary number......
in the same way we ignore the fourth digit in 0110 (6) to get 011 (3)
in the above example we add 011 to 111 which is greater than 100 (4)
without ignoring the fourth bit (i.e) if you add 0110 to 1111 (which is the actual question) you get the same BCD number as 10101 which is the answer
RULE 1: SHIFT THE BINARY NUMBER LEFT THREE TIMES (NOT MORE THAN THAT)
RULE 2: CHECK IF THE FIRST THREE DIGITS ARE GREATER THAN FOUR .
RULE 3: IF THE FIRST THREE DIGITS ARE GREATER THAN 100 ADD 011 TO THEM .
RULE 4: ELSE LEAVE THEM BE .(AS IT WILL ALREADY BE IN THE DESIRED BCD FORMAT)
This method didn't work for 90 :(
Your videos help me so much with understanding the concepts :)
thank you so much for your helpful videos!
lots of prayers from pakistan sir g.... thanku so so much... finally koi acha teacher mila DLD ka @nesoacademy
the best method for converting binary to bcd is to add 6(0110) to the binary code of above 9.
the binary and bcd codes are same for the digits upto 9.
for example: decimal number(15)=1111 binary
15 is greater than 9
so add 6(0110)to it.
1111+0110=10101
we can write it as 0001 0101
1 5
in this way ,we can convert binary code to bcd code..
Thank you so much:-)
What if the no.is in decimal form like 11010.0100
1111 is 15 not 16. Minor error. Excellent explanation.
Thanks for this, but you haven't explained the significance of the rule "if it's greater than 4 then add 3". The mechanics are easy to follow but I'm lost on the reasoning.
This is same as the add 6 method. Only difference is that we are doing the operations with the three most significant bits.
(1) Reason for add 6 method: 4 bits contain 16 numbers [0-15]
(2) When to add 6, when the 4 bits are greater than 9
----
- If the 4 bits are greater than 9, then the first 3 bits are greater than 4. (When we eventually "shift" the last bit, we are multiplying by 2 and adding either a '0' or a '1'.)
- If we add 6 to 4 bits, it is the same as adding 3 to the most significant 3 bits. (because as above. in the shift operation, we will be multiplying by 2)
i can explain it to u ,
Decimal digit BCD
0 - 0 0 0 0
if u look at this chart and observe only the first three digits from left
1 - 0 0 0 1
2 - 0 0 1 0
u can see that none of them is greater than 4
3 - 0 0 1 1
4 - 0 1 0 0
for 9 the three left most bits 1 0 0 equals 4
5 - 0 1 0 1
6 - 0 1 1 0
10 - 1010 , if u look at left most three digits of 10 , 101 equals 5 ,
7 - 0 1 1 1
8 - 1 0 0 0
hence a if three leftmost bits are greater than 4 , it indicates that the orignal
9 - 1 0 0 1 binary number is greater than 9 which is invalid , hence we add 3 .
Respected sir, simply add six to get desired result. I understand from previous video.
this comment is underrated !
It doesn't work for every number like for 20. 20 in binary is 10100 + 0110 = 11010 which is not 20 in BCD. We'll again have to add 6 to get the correct answer in BCD
@@nd685 Actually we need to add 6 once if it is for 4 digit number ..here as 20 is 5 digit binary number we need to add 6 for 2 times .....Anyway the method used in previous video is simpler than this method
Can't i simply change binary to decimal and decimal to bcd
Thats why he mentioned directly in the starting
Thank you so so so so much from very very very deep of heart. 😊😊
Sir, how can we convert a single decimal digit like 6 or 7 using the above method which you have told us ?
Great effort sir but conversion of binary to decimal orally and then converting it to BCD is much easier.
That's very subjective. it doesn't work for everyone's situation. I am building a calculator and need to understand this process, as the quickest process is binary to BCD direct conversion, before I can output to a 7 Segment display. All my numbers must be carried in a form of binary, so this is a great video for me.
why should we stop shifting only when the ones place is more than 4??
Why shift and add 3? Where does it come from.
One example is not enough to understand......I tried with another example decimal number 18
It has binary equivalent 10010.
It has BCD 00011000.
After applying this method I got
11 in tens and 110 in ones and nothing in decimal column.
Please help me...
See, you have to add 3 when shifted number is greater than 4 only,
Original no. 10010
Shift 1: 1 | 0010
Shift 1: 10 | 010
Shift 1: 100 | 10 (equal to 4 but not greater)
Shift 1: 1001 | 0
Now it is greater than 4
Add 3 - 11
1001 + 11 = 1100
1100 | 0
Shift 1: 1 | 1000 | - (stop)
We get : 0001 1000 (18)
You have to keep 4 bit in both tens and ones
thank you so much bro , you made me understand what sir couldnt
@@KartikSharma-mt5nm
This method only for (15 )If there is zero in middle.how we can convert that please sir
You are legend, thank you!
Legen wait for it dary.
👑👑👑👑
excellent video
I'm having hard times understanding why this method works!
excellent tutorial
correct it sir
conv is about it's 15 not 16
He is wrong and you are right.
We should always add 3 ? In case we should add 3 y we should add it
isnt 1111 = 15? not 16?
It is but he wrote the 5 a little bit strange.
Yaa (5) to the base 10 = 0101 and (6) to the base 10 = 0110, that was a mistake and also 16 in Binary will be represented as 10000
Hi sir I bit confused about this method can u explain for decimal number 68 or 36 , u said that in ones column binary should be greater then 4(100) , so if i shift again then it comes 8(1001) for 36 then shift binaty it gives tens 10 & ones 1100 after add 3 (011) & shifti ,pls give solution for this
jisne bhi ye banaya h kya cheez banai h. waah
SIR, DOUBT
83= 10000011
34= 00110100
+ = 10110111
So, 1011= 11 and 0011= 7
at we will add 6 were?
please clear this doubt
great effort
How do I modify the process for use with 8 bit numbers?
Sir if the number is like 3 digit decimal then it's binary equivalent will be handy and for that how to proceed further
With this same method
Why should we add 3 when we have greater than 4 only???? Why so....
Why not just add 0110 (6) as explained in the previous video?
Wasn't that meant for doing sums of BCD codes?
Binary for 6 is 0110
BCD for 16 should be 00010110
How is it 00010101?
It is because he also wrongly wrote 15 (1111) as 16 lol.
Thanks a lot really helpful . :-D
why we are writting tens ones and decimal up
Thanks a lot 😊
Why are we adding 3?
6 is written as (0110) and you written 16 in wrong way also
The other way of doing it sounds more easy to me :p
What is that
@@mdrezwanuzzaman5129 go through previous lectures
is there an IC for this process
Thanks. This helped a ;ot
*lot
Hey binary form of 6 is 110 not 0101 ....you are alway using 0101
it's 15 actually
Amazing
how will I make conversion of 75 into bcd
0111 0101
Please convert an hundred place number I meant that a number like 153 in BCD>plz
I think we won't be able to convert a decimal number more than 99 into BCD. the range of BCD Is from 0-99
Yes follow same method, take 100s,10s and 1s coloumns and in every coloum if the number reaches greater than 4 add 3(for 153 u have to add 3 in 1s coloumn for 4 times and in 10s coloumn for 1 time) and shift u will get the correct answer
Hey i like your video but actually i already knew how to convert 11111 to bcd but I don't know how to do like with 0's can u help me
Follow the same procedure
@@RAVITEJAP-ss9rl jesus u reply after 4 years lol this brings back memories
sorry but why is this relevant??You can just convert 1111 to decimal and then to BCD without this long rule
He sounds like he's using his nose to speak just like Himesh Reshammiya.
6 is 110 not 101.
That 5 bro
اي لزكها 🌚
How can write the last shift 0101 ????