Shift Add 3 Method | Simple method for Binary to BCD conversion

Поділитися
Вставка
  • Опубліковано 30 лис 2024

КОМЕНТАРІ • 83

  • @chugawar
    @chugawar 3 роки тому +23

    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

    • @fetrat9149
      @fetrat9149 14 днів тому

      he said 15, it just looks like 16

  • @sasi3640
    @sasi3640 6 років тому +5

    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)

    • @nd685
      @nd685 5 років тому +1

      This method didn't work for 90 :(

  • @yuhanlee9676
    @yuhanlee9676 8 років тому +11

    Your videos help me so much with understanding the concepts :)
    thank you so much for your helpful videos!

  • @trendingnewstoday-e5g
    @trendingnewstoday-e5g 10 місяців тому +1

    lots of prayers from pakistan sir g.... thanku so so much... finally koi acha teacher mila DLD ka @nesoacademy

  • @sarathchandra680
    @sarathchandra680 6 років тому +14

    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..

    • @Himanidatcha
      @Himanidatcha 4 роки тому +1

      Thank you so much:-)

    • @abhicasm
      @abhicasm 2 роки тому +1

      What if the no.is in decimal form like 11010.0100

  • @neelabhrabhattacharyya
    @neelabhrabhattacharyya 4 роки тому +4

    1111 is 15 not 16. Minor error. Excellent explanation.

  • @_Junkers
    @_Junkers 9 років тому +34

    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.

    • @RahulMadhavan
      @RahulMadhavan 6 років тому +2

      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)

    • @anonymouswanted3686
      @anonymouswanted3686 4 роки тому +8

      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 .

  • @enjoyingyourself
    @enjoyingyourself 7 років тому +16

    Respected sir, simply add six to get desired result. I understand from previous video.

    • @__Suyash
      @__Suyash 6 років тому

      this comment is underrated !

    • @nd685
      @nd685 5 років тому +2

      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

    • @swapnasruji.9933
      @swapnasruji.9933 4 роки тому +1

      @@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

  • @rahultiwari9003
    @rahultiwari9003 5 років тому +11

    Can't i simply change binary to decimal and decimal to bcd

    • @RAVITEJAP-ss9rl
      @RAVITEJAP-ss9rl 3 роки тому

      Thats why he mentioned directly in the starting

  • @swetachaudhary9220
    @swetachaudhary9220 3 роки тому +1

    Thank you so so so so much from very very very deep of heart. 😊😊

  • @musical9069
    @musical9069 5 років тому +2

    Sir, how can we convert a single decimal digit like 6 or 7 using the above method which you have told us ?

  • @prodiptaghosh6809
    @prodiptaghosh6809 4 роки тому +4

    Great effort sir but conversion of binary to decimal orally and then converting it to BCD is much easier.

    • @FenrirTheMenace
      @FenrirTheMenace 3 роки тому +1

      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.

  • @girishpagadala7410
    @girishpagadala7410 7 років тому +1

    why should we stop shifting only when the ones place is more than 4??

  • @companymen42
    @companymen42 7 років тому +2

    Why shift and add 3? Where does it come from.

  • @jaisuriyar5259
    @jaisuriyar5259 4 роки тому +1

    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...

    • @KartikSharma-mt5nm
      @KartikSharma-mt5nm Рік тому +3

      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)

    • @KartikSharma-mt5nm
      @KartikSharma-mt5nm Рік тому +1

      You have to keep 4 bit in both tens and ones

    • @ArnavVerma-oy4dc
      @ArnavVerma-oy4dc Рік тому

      thank you so much bro , you made me understand what sir couldnt
      @@KartikSharma-mt5nm

  • @sharanabasava7847
    @sharanabasava7847 4 роки тому +1

    This method only for (15 )If there is zero in middle.how we can convert that please sir

  • @TheStrelok7
    @TheStrelok7 2 роки тому

    You are legend, thank you!

  • @rishavrungta
    @rishavrungta 6 років тому +1

    Legen wait for it dary.

  • @vigneshwaralingam2901
    @vigneshwaralingam2901 9 років тому +1

    excellent video

  • @sepehrgolestanian6161
    @sepehrgolestanian6161 2 роки тому +1

    I'm having hard times understanding why this method works!

  • @mahmoudshaltoot7094
    @mahmoudshaltoot7094 9 років тому

    excellent tutorial

  • @vinayakbsolankar8122
    @vinayakbsolankar8122 7 років тому +3

    correct it sir
    conv is about it's 15 not 16

  • @lakshmidevi6749
    @lakshmidevi6749 6 років тому

    We should always add 3 ? In case we should add 3 y we should add it

  • @DawgFL
    @DawgFL 8 років тому +7

    isnt 1111 = 15? not 16?

    • @ghgelu
      @ghgelu 8 років тому +8

      It is but he wrote the 5 a little bit strange.

    • @rajujohn3462
      @rajujohn3462 5 років тому

      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

  • @rafileomulla3609
    @rafileomulla3609 9 років тому

    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

  • @keysangyonthan
    @keysangyonthan 5 років тому

    jisne bhi ye banaya h kya cheez banai h. waah

  • @Master__piece
    @Master__piece 2 роки тому

    SIR, DOUBT
    83= 10000011
    34= 00110100
    + = 10110111
    So, 1011= 11 and 0011= 7
    at we will add 6 were?
    please clear this doubt

  • @daudsaber3032
    @daudsaber3032 8 років тому

    great effort

  • @FenrirTheMenace
    @FenrirTheMenace 3 роки тому

    How do I modify the process for use with 8 bit numbers?

  • @allanraju1570
    @allanraju1570 5 років тому

    Sir if the number is like 3 digit decimal then it's binary equivalent will be handy and for that how to proceed further

  • @snehitha1105
    @snehitha1105 3 роки тому

    Why should we add 3 when we have greater than 4 only???? Why so....

  • @notgeo3912
    @notgeo3912 3 роки тому

    Why not just add 0110 (6) as explained in the previous video?

  • @radhikakulkarni7426
    @radhikakulkarni7426 5 років тому +2

    Binary for 6 is 0110
    BCD for 16 should be 00010110
    How is it 00010101?

    • @yossirihandle
      @yossirihandle 4 роки тому +1

      It is because he also wrongly wrote 15 (1111) as 16 lol.

  • @Pavel0728
    @Pavel0728 8 років тому

    Thanks a lot really helpful . :-D

  • @allinone-ro1sk
    @allinone-ro1sk 7 років тому

    why we are writting tens ones and decimal up

  • @vidhijadav1951
    @vidhijadav1951 8 років тому

    Thanks a lot 😊

  • @sohanchatterjee47
    @sohanchatterjee47 2 роки тому

    Why are we adding 3?

  • @alokpimpare4705
    @alokpimpare4705 Рік тому

    6 is written as (0110) and you written 16 in wrong way also

  • @akshitarora470
    @akshitarora470 6 років тому +2

    The other way of doing it sounds more easy to me :p

  • @kudakwashedzorani7576
    @kudakwashedzorani7576 6 років тому

    is there an IC for this process

  • @alexsindledecker3665
    @alexsindledecker3665 7 років тому

    Thanks. This helped a ;ot

  • @akhileshwartiwari5120
    @akhileshwartiwari5120 5 років тому +1

    Hey binary form of 6 is 110 not 0101 ....you are alway using 0101

  • @phanindrareddy4885
    @phanindrareddy4885 6 років тому

    Amazing

  • @akashsharma6314
    @akashsharma6314 7 років тому

    how will I make conversion of 75 into bcd

  • @pratirupgoswami2852
    @pratirupgoswami2852 7 років тому +1

    Please convert an hundred place number I meant that a number like 153 in BCD>plz

    • @adithya2519
      @adithya2519 5 років тому

      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

    • @RAVITEJAP-ss9rl
      @RAVITEJAP-ss9rl 3 роки тому

      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

  • @KrXza
    @KrXza 8 років тому

    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

    • @RAVITEJAP-ss9rl
      @RAVITEJAP-ss9rl 3 роки тому +1

      Follow the same procedure

    • @KrXza
      @KrXza 3 роки тому

      @@RAVITEJAP-ss9rl jesus u reply after 4 years lol this brings back memories

  • @roymaina1800
    @roymaina1800 6 років тому

    sorry but why is this relevant??You can just convert 1111 to decimal and then to BCD without this long rule

  • @anmol3
    @anmol3 4 роки тому

    He sounds like he's using his nose to speak just like Himesh Reshammiya.

  • @yossirihandle
    @yossirihandle 4 роки тому

    6 is 110 not 101.

  • @aliz.4043
    @aliz.4043 4 роки тому

    اي لزكها 🌚

  • @shubhendrakarn6921
    @shubhendrakarn6921 3 роки тому

    How can write the last shift 0101 ????