Decimal to Binary - Simple conversion trick

Sdílet
Vložit
  • čas přidán 8. 04. 2019
  • This video explains how to convert from Decimal to Binary with a simple trick.
    This is not the 'remainder method' - this trick is more intuitive and simple.
    This method can be used also to convert from decimal to hexadecimal, or from hexadecimal to binary, or any other base that you want, as simple as that.
    This video also covers the basic understanding of binary numbers and decimal numbers and what is a "base".
    So if you're looking for an easy way, or maybe even the easiest method to convert Decimal number to Binary number, you've come to the right place.
    Binary number is a number that is represented by 1 and 0.
    Decimal number is a regular number that you use on a daily basis.
    Feel free to comment with questions.

Komentáře • 82

  • @dvgelectrician1605
    @dvgelectrician1605 Před 3 lety +19

    Nothing easier than this.

  • @jeffstack4217
    @jeffstack4217 Před 4 lety +23

    If you're going to draw a chart might as well subtract, that way you'd know instantly. Much faster
    Using your example;
    292 - 256 = 36,
    we know instantly to skip everything else and go right to 32.
    36 - 32 = 4, skip everything else and goto (

    • @gel6888
      @gel6888 Před 3 lety

      This trick is a lot easier. Thanks a lot.

    • @travelintrovert6351
      @travelintrovert6351 Před 3 lety

      convert 202 (decimal number) to binary

    • @apocalypticbean
      @apocalypticbean Před rokem +1

      the point is not to subtract because it's harder

    • @Ishani132
      @Ishani132 Před 24 dny

      I didnt learn how to convert from the yt vid but ur example!

  • @porksandcheese
    @porksandcheese Před 3 lety +5

    Thank you this really helped had no idea what I was doing trying to homeschool my daughter and this made sense immediately 😊

    • @MeirGabay
      @MeirGabay  Před 3 lety

      So happy to hear that! Very inspiring :)

  • @sds1483
    @sds1483 Před 7 měsíci

    Thank you sir this was EXTREMELY HELPFUL. I understood how to do it but I didn’t realise that a method could be that simple 😊

  • @mraccountancy2023
    @mraccountancy2023 Před rokem

    it cant be explained better than this
    you rock!!!!

  • @noahdell8676
    @noahdell8676 Před 11 měsíci

    That was extremely helpful, I appreciate it. I was so confused earlier. Hopefully I’ll get better after taking my computer science class

  • @fahadabid9160
    @fahadabid9160 Před rokem

    Much easier trick
    Keep doing such appreciable work
    Thank you

  • @Subhankar-Venkumahanti
    @Subhankar-Venkumahanti Před 4 měsíci +1

    Thank you so much bro , It helped me a lot , love from CS Undergrad India 😀

  • @youshakhan007
    @youshakhan007 Před 2 lety +1

    Highly appreciatable work 💗💗

  • @mohamed6272
    @mohamed6272 Před 4 lety +10

    Thanks a lot for this, it's way better than my professor's method.
    I would've loved more examples though, just to make sure I got the hang of it.

    • @MeirGabay
      @MeirGabay  Před 4 lety +1

      Hey Moe, if you want to make sure that you're doing it right, you can Google it like this - 23 to binary. Ignore "0b", this is how computers realize that the rest of the number is binary

  • @xp3569
    @xp3569 Před 10 měsíci

    Thanks a lot buddy, it was very helpful .

  • @ayushijha9634
    @ayushijha9634 Před 3 lety +2

    Thank u I am trying to learn coding before them I try many thing to learn binary properly but when I see your video I learn binary fully properly thank you Maier gabay

  • @mokshivlogs281
    @mokshivlogs281 Před 2 lety +1

    it helped me so much. i aced in my exam

  • @rolandcucicea6006
    @rolandcucicea6006 Před 2 lety +4

    is there a more efficient way? I consider this not optimal because it takes time to draw a table for every number and substracting the powers of two from the given number as many times as we need. Is there a math trick to find them faster?

    • @MeirGabay
      @MeirGabay  Před 2 lety +4

      That's a great question Roland. In "reality", I simply write down the numbers on paper, there's no need to draw a table each time. The table makes it easier to understand the logic. A concrete example:
      Convert 141 to binary-
      128. 64. 32. 16. 8. 4. 2. 1
      1. 0. 0. 0. 1. 1. 0. 1
      So it's - 10001101
      How I did it? I wrote the highest multiplication that fits into 141, and it's 128. From here, I know I need to add 13, so I need 8+4+1
      Practice this method a few times and you'll see it's blazingly fast

    • @rolandcucicea6006
      @rolandcucicea6006 Před 2 lety +3

      @@MeirGabay Cheers. I found another property: the sum of the powers is 255. For large numbers it's faster to do 255-x and find the sum of powers for x. Those bits will be 0 and the rest 1.
      It's even better when dealing with hex since the highest hex is F (15 decimal) and a lot of times when converting binary to hex you'd have like 0111, or 1110.. can do 15-8=7 and 15-1=14 (E)

    • @MeirGabay
      @MeirGabay  Před 2 lety +2

      Awesome! As long as you feel comfortable with a given method, just go with it. I'm glad you found your way

  • @soursdeyny1687
    @soursdeyny1687 Před měsícem

    OMG Thank you with this i'm gonna pass my exam. lol
    easy to understand

    • @MeirGabay
      @MeirGabay  Před měsícem

      You're very welcome 🙏🏻

  • @yerison8616
    @yerison8616 Před 2 lety +1

    thank you so much for this ❣️

  • @AnilKumar-oi7vr
    @AnilKumar-oi7vr Před 2 lety +2

    Amazing video seeing from India

  • @jisoo_stan_346
    @jisoo_stan_346 Před rokem

    Thanks a lot for this!

  • @contentbible615
    @contentbible615 Před rokem +1

    Interesting thank you for sharing 🙂

  • @selcuksonerakgul2206
    @selcuksonerakgul2206 Před 6 měsíci

    Try to subtract instead of addition. So, you need to only compare the new number by the digit value. You save time. But still there is a faster method...

  • @Truncatesalt
    @Truncatesalt Před 3 lety +3

    Thank you fam.

  • @ashutoshyadav9916
    @ashutoshyadav9916 Před 3 měsíci

    wow nice trick and super help full

  • @introve6351
    @introve6351 Před 4 lety +5

    thank you so much im taking computer science and calculators arent allowed so without this trick i would be dead thank you so much

  • @kajalsingh-tu9nq
    @kajalsingh-tu9nq Před 2 lety

    Hey i am from India and i love your concept so much 🥰😘

  • @Tanessok
    @Tanessok Před 2 lety

    Thanks For the trick Sir 😊

  • @dejistudios2696
    @dejistudios2696 Před rokem

    Thank you Sir.

  • @martinduplessis3949
    @martinduplessis3949 Před rokem +1

    Do you have a video to show from Binary back to Decimal?

    • @MeirGabay
      @MeirGabay  Před rokem +1

      Hey Martin, sorry for the delay; I don’t, though you can shoot a binary number and I’ll show you how
      The idea is to draw the same binary table, and sum all the numbers that have 1 in them.
      As an example, 1010011
      Firstly , I know it’s an odd number, because the right most bit is 1, and the only way for a number to be odd is when the right most bit is 1 (we’ll see in a sec)
      Secondly, draw the table beneath the number
      1 0 1 0 0 1 1
      64 32 16 8 4 2 1
      Now sum all the numbers under the 1s
      64+16+2+1 = 83

  • @chenuliayeka7481
    @chenuliayeka7481 Před rokem

    thanks a lot for this method... now i can give the answer in my class even faster... hehe 😁

  • @senojs2147
    @senojs2147 Před 8 měsíci

    Thank a lot sir

  • @pratikdhame
    @pratikdhame Před 2 lety

    Nicely done ✅

  • @PriyankaSingh-zz5ln
    @PriyankaSingh-zz5ln Před 2 lety

    So easy question thanks a lot sir

  • @kmriyad4401
    @kmriyad4401 Před rokem

    Thanks from 🇧🇩

  • @ekoetteh9637
    @ekoetteh9637 Před rokem

    I love your work

  • @firecanon5447
    @firecanon5447 Před 2 měsíci

    can u do for 192

  • @Abhishek-nn8xq
    @Abhishek-nn8xq Před rokem

    Thankyou so much 🙏🏻.. from 🇮🇳

    • @MeirGabay
      @MeirGabay  Před rokem

      You're welcome from 🇮🇱 😉

  • @kp9433
    @kp9433 Před 2 lety

    Very helpful thanks

  • @RaichoNikolov
    @RaichoNikolov Před 2 lety

    I was inspired by this video and thought about easier way. Much less work and much simple calculations.
    Is 256 less then 292? Yes. Write 1.
    Substract 292 - 256 = 36
    Which number is less than 36? 32. Write 1 on 32. The others on the left of it are 0-s.
    36-32 = 4. Write 1 on 4 and the rest are 0-s.

    • @MeirGabay
      @MeirGabay  Před 2 lety +1

      Hah, that's how I do it in my head :)
      This is exactly how you should solve it, kudos 🤟🏻

  • @faisalahmed9434
    @faisalahmed9434 Před rokem

    good work!

  • @xylophone3764
    @xylophone3764 Před 8 měsíci

    At 3:14 why do you sum up 32 and 256 and then afterwards you use 288 to add the other numbers and not 256 anymore?

    • @kousikv2247
      @kousikv2247 Před 7 měsíci

      Your the only person who s asked this question. I noted this too.. and he hasn't answered..

    • @MeirGabay
      @MeirGabay  Před 5 měsíci

      I'm sorry for not getting back to you sooner. The goal is to add sum and add 1 until it fits.
      In the case of 3:14, where we had 256, we're at the 32 point; we ask if 256+32

  • @adamt4110
    @adamt4110 Před 3 lety +1

    what sofware u use to animate these?

    • @MeirGabay
      @MeirGabay  Před 3 lety +1

      You'll be surprised - PowerPoint

    • @BASED525
      @BASED525 Před 3 lety +1

      @@MeirGabay surprising

  • @masifkhan.
    @masifkhan. Před 3 lety +1

    best explanation

  • @alyssa-ks3zv
    @alyssa-ks3zv Před 3 lety +2

    Thank youuuuuu huhu

  • @sibasishsahu4275
    @sibasishsahu4275 Před 4 lety +1

    Awesome thnx 🤩

  • @akhilbunnyy
    @akhilbunnyy Před 2 lety

    THANK YOU

  • @shahrhaiyan8063
    @shahrhaiyan8063 Před 3 lety +1

    Accent is sooooo gooodd

  • @gayithribalamuralivlogs6512
    @gayithribalamuralivlogs6512 Před 11 měsíci

    #Tqs a Lot 🙏

  • @sarahsleman7788
    @sarahsleman7788 Před rokem

    thanks❤

  • @moondir
    @moondir Před rokem

    A legend

  • @cgiguy
    @cgiguy Před rokem

    thank you so much for this

  • @mikewazaoski5987
    @mikewazaoski5987 Před 3 lety +2

    Where are you from?

  • @KrithikaTamil
    @KrithikaTamil Před 3 lety

    Thank u

  • @rajendrabist3223
    @rajendrabist3223 Před 2 lety

    Can you solve 225 into binary plzz

  • @youshakhan007
    @youshakhan007 Před 2 lety

    Bruh 💗💗💗

  • @SandeepChauhan-pl5kb
    @SandeepChauhan-pl5kb Před 2 lety

    number of likes you got is 512 which is 2^9

  • @gopigopi-mh7xw
    @gopigopi-mh7xw Před 3 lety +1

    Thats not a 511 that is a 512 you are saying wrong

  • @thetechgamer3457
    @thetechgamer3457 Před rokem +1

    this is a nice tutorial!!! @Meir Gabay