Decimal to Binary - Simple conversion trick

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024
  • 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.

ความคิดเห็น • 87

  • @jeffstack4217
    @jeffstack4217 4 ปีที่แล้ว +24

    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 3 ปีที่แล้ว

      This trick is a lot easier. Thanks a lot.

    • @travelintrovert6351
      @travelintrovert6351 3 ปีที่แล้ว

      convert 202 (decimal number) to binary

    • @apocalypticbean
      @apocalypticbean ปีที่แล้ว +1

      the point is not to subtract because it's harder

    • @Ishani132
      @Ishani132 4 หลายเดือนก่อน

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

    • @hamshini_kanuri
      @hamshini_kanuri หลายเดือนก่อน

      thank you☺

  • @porksandcheese
    @porksandcheese 3 ปีที่แล้ว +6

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

    • @MeirGabay
      @MeirGabay  3 ปีที่แล้ว

      So happy to hear that! Very inspiring :)

  • @dvgelectrician1605
    @dvgelectrician1605 3 ปีที่แล้ว +20

    Nothing easier than this.

  • @ayushijha9634
    @ayushijha9634 3 ปีที่แล้ว +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

    • @MeirGabay
      @MeirGabay  3 ปีที่แล้ว +1

      You're welcome!

    • @ayushijha9634
      @ayushijha9634 3 ปีที่แล้ว

      @@MeirGabay thank you

  • @mohamed6272
    @mohamed6272 4 ปีที่แล้ว +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  4 ปีที่แล้ว +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

  • @Subhankar-Venkumahanti
    @Subhankar-Venkumahanti 7 หลายเดือนก่อน +1

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

  • @manelyndelosreyes4321
    @manelyndelosreyes4321 หลายเดือนก่อน +1

    HONESTLY THIS HELPED SOOOO MUCH THANK YOUUU

  • @sds1483
    @sds1483 11 หลายเดือนก่อน

    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 😊

  • @noahdell8676
    @noahdell8676 ปีที่แล้ว

    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 ปีที่แล้ว

    Much easier trick
    Keep doing such appreciable work
    Thank you

  • @rolandcucicea6006
    @rolandcucicea6006 3 ปีที่แล้ว +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  3 ปีที่แล้ว +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 3 ปีที่แล้ว +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  3 ปีที่แล้ว +2

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

  • @mraccountancy2023
    @mraccountancy2023 ปีที่แล้ว

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

  • @RaichoNikolov
    @RaichoNikolov 2 ปีที่แล้ว

    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  2 ปีที่แล้ว +1

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

  • @AnilKumar-oi7vr
    @AnilKumar-oi7vr 3 ปีที่แล้ว +2

    Amazing video seeing from India

  • @introve6351
    @introve6351 5 ปีที่แล้ว +6

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

    • @MeirGabay
      @MeirGabay  5 ปีที่แล้ว +1

      You're welcome Omar!

  • @kajalsingh-tu9nq
    @kajalsingh-tu9nq 2 ปีที่แล้ว

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

  • @youshakhan007
    @youshakhan007 2 ปีที่แล้ว +1

    Highly appreciatable work 💗💗

  • @mokshivlogs281
    @mokshivlogs281 3 ปีที่แล้ว +1

    it helped me so much. i aced in my exam

  • @selcuksonerakgul2206
    @selcuksonerakgul2206 9 หลายเดือนก่อน

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

  • @ashutoshyadav9916
    @ashutoshyadav9916 6 หลายเดือนก่อน

    wow nice trick and super help full

  • @Truncatesalt
    @Truncatesalt 3 ปีที่แล้ว +3

    Thank you fam.

  • @soursdeyny1687
    @soursdeyny1687 4 หลายเดือนก่อน

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

    • @MeirGabay
      @MeirGabay  4 หลายเดือนก่อน

      You're very welcome 🙏🏻

  • @martinduplessis3949
    @martinduplessis3949 2 ปีที่แล้ว +1

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

    • @MeirGabay
      @MeirGabay  2 ปีที่แล้ว +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

  • @xp3569
    @xp3569 ปีที่แล้ว

    Thanks a lot buddy, it was very helpful .

  • @chenuliayeka7481
    @chenuliayeka7481 2 ปีที่แล้ว

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

  • @Abhishek-nn8xq
    @Abhishek-nn8xq ปีที่แล้ว

    Thankyou so much 🙏🏻.. from 🇮🇳

    • @MeirGabay
      @MeirGabay  ปีที่แล้ว

      You're welcome from 🇮🇱 😉

  • @yerison8616
    @yerison8616 2 ปีที่แล้ว +1

    thank you so much for this ❣️

  • @debjitsarkar609
    @debjitsarkar609 หลายเดือนก่อน +1

    Anybody here who discovered it earlier and came to check the process😅

    • @MeirGabay
      @MeirGabay  หลายเดือนก่อน

      Yup, I did 😉

  • @contentbible615
    @contentbible615 ปีที่แล้ว +1

    Interesting thank you for sharing 🙂

  • @senojs2147
    @senojs2147 11 หลายเดือนก่อน

    Thank a lot sir

  • @Tanessok
    @Tanessok 2 ปีที่แล้ว

    Thanks For the trick Sir 😊

  • @PriyankaSingh-zz5ln
    @PriyankaSingh-zz5ln 2 ปีที่แล้ว

    So easy question thanks a lot sir

  • @masifkhan.
    @masifkhan. 3 ปีที่แล้ว +1

    best explanation

  • @firecanon5447
    @firecanon5447 5 หลายเดือนก่อน

    can u do for 192

  • @kmriyad4401
    @kmriyad4401 ปีที่แล้ว

    Thanks from 🇧🇩

  • @jisoo_stan_346
    @jisoo_stan_346 ปีที่แล้ว

    Thanks a lot for this!

  • @ekoetteh9637
    @ekoetteh9637 ปีที่แล้ว

    I love your work

  • @xylophone3764
    @xylophone3764 ปีที่แล้ว

    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 11 หลายเดือนก่อน +1

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

    • @MeirGabay
      @MeirGabay  9 หลายเดือนก่อน

      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

  • @pratikdhame
    @pratikdhame 2 ปีที่แล้ว

    Nicely done ✅

  • @moondir
    @moondir ปีที่แล้ว

    A legend

  • @Douye_Adedeji2696
    @Douye_Adedeji2696 ปีที่แล้ว

    Thank you Sir.

  • @kp9433
    @kp9433 2 ปีที่แล้ว

    Very helpful thanks

  • @faisalahmed9434
    @faisalahmed9434 2 ปีที่แล้ว

    good work!

  • @alyssa-ks3zv
    @alyssa-ks3zv 3 ปีที่แล้ว +2

    Thank youuuuuu huhu

  • @shahrhaiyan8063
    @shahrhaiyan8063 3 ปีที่แล้ว +1

    Accent is sooooo gooodd

  • @sarahsleman7788
    @sarahsleman7788 ปีที่แล้ว

    thanks❤

  • @sibasishsahu4275
    @sibasishsahu4275 4 ปีที่แล้ว +1

    Awesome thnx 🤩

  • @akhilbunnyy
    @akhilbunnyy 2 ปีที่แล้ว

    THANK YOU

  • @mikewazaoski5987
    @mikewazaoski5987 3 ปีที่แล้ว +2

    Where are you from?

  • @yamucreations2998
    @yamucreations2998 หลายเดือนก่อน

    nice

  • @adamt4110
    @adamt4110 4 ปีที่แล้ว +1

    what sofware u use to animate these?

    • @MeirGabay
      @MeirGabay  4 ปีที่แล้ว +1

      You'll be surprised - PowerPoint

    • @BASED525
      @BASED525 3 ปีที่แล้ว +1

      @@MeirGabay surprising

  • @cgiguy
    @cgiguy ปีที่แล้ว

    thank you so much for this

  • @rajendrabist3223
    @rajendrabist3223 2 ปีที่แล้ว

    Can you solve 225 into binary plzz

    • @rajendrabist3223
      @rajendrabist3223 2 ปีที่แล้ว +1

      My answer is 11100001

    • @MeirGabay
      @MeirGabay  2 ปีที่แล้ว

      Your answer is correct :)

  • @KrithikaTamil
    @KrithikaTamil 3 ปีที่แล้ว

    Thank u

    • @MeirGabay
      @MeirGabay  3 ปีที่แล้ว

      With pleasure

  • @duneshhasanga786
    @duneshhasanga786 หลายเดือนก่อน

    💪💪❤

  • @youshakhan007
    @youshakhan007 2 ปีที่แล้ว

    Bruh 💗💗💗

  • @CrackingTheGames
    @CrackingTheGames 2 ปีที่แล้ว

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

  • @gopigopi-mh7xw
    @gopigopi-mh7xw 4 ปีที่แล้ว +1

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

    • @MeirGabay
      @MeirGabay  4 ปีที่แล้ว

      May you please provide more details? Which minute?

    • @rafaelencaoua7507
      @rafaelencaoua7507 4 ปีที่แล้ว +2

      @@MeirGabay at 1:34 you said 511

  • @thetechgamer3457
    @thetechgamer3457 2 ปีที่แล้ว +1

    this is a nice tutorial!!! @Meir Gabay