Decimal to binary: two methods

I will use two methods to convert a decimal number to 8-bit long binary. Method 1 is a repeated "find and subtract" method. Method 2 is a repeated division-by-2 method.
Knowing how to convert from decimal to binary or from binary to decimal is useful.
We will use this knowledge when we are talking about secret of subnet mask, how to calculate the # of hosts, five IP classes, and subnetting.
This is my education channel. My topics cover networking, security, programming, and other computer-related materials.
Please subscribe my channel. Many thanks.

Пікірлер: 74

  • @AliceAttentionWhore
    @AliceAttentionWhore4 жыл бұрын

    0:22 - Method 1: Repeated "find and subtract" 3:42 - Method 2: Repeated "division by 2"

  • @ydunamartinee7219
    @ydunamartinee72193 жыл бұрын

    sir, i just wanna say that you are such a great help for a student like me! especially during this pandemic wherein my school is implementing blended learning🥺🥺🥺

  • @florenceataba9662
    @florenceataba96622 жыл бұрын

    Simple and articulate. Many thanks for sharing.

  • @dynafemarquezaquino8851
    @dynafemarquezaquino88512 жыл бұрын

    i have a quiz tomorrow and you make things easy, so great i found your video! this help me a lot

  • @jd4092
    @jd40924 жыл бұрын

    Great video, cleared my concept ! very much thanks

  • @inqsedg060
    @inqsedg0605 жыл бұрын

    A great video and a great chanel for learning.

  • @khalilmalki5345
    @khalilmalki53455 жыл бұрын

    You made my day Dr Sunny, I'm very delighted to be one of your followers and thanks a lot you such a genius

  • @sunnyclassroom24

    @sunnyclassroom24

    5 жыл бұрын

    Thank you very much for your kindness.

  • @unloadtimber
    @unloadtimber2 жыл бұрын

    thank you so much!! well explained!!!

  • @alexiasmith50
    @alexiasmith506 жыл бұрын

    Well done!

  • @darabu.julhaz6955
    @darabu.julhaz69553 жыл бұрын

    thanks, very helpful and easy method !!!

  • @chex1007
    @chex10073 жыл бұрын

    what if, in the first method, the number that we are trying to convert to binary is something like 542, is it going to be the same?

  • @jaymiel169
    @jaymiel1693 жыл бұрын

    thank you for the second method it helped me alot

  • @kofiappiah4123
    @kofiappiah4123 Жыл бұрын

    Thanks for the 2nd method

  • @asoteico9528
    @asoteico95284 жыл бұрын

    Awesome...!!!

  • @achilbobson8903
    @achilbobson89032 жыл бұрын

    Sunny you are just a genius

  • @justinandkaz8533
    @justinandkaz85334 жыл бұрын

    such awesome video! Thank you!

  • @sunnyclassroom24

    @sunnyclassroom24

    4 жыл бұрын

    You are welcome!

  • @danielj9865
    @danielj98653 жыл бұрын

    second video i watched love your videos

  • @allondradekauwe6684
    @allondradekauwe66843 жыл бұрын

    This really helped me in my homework

  • @danielrice5474
    @danielrice54746 жыл бұрын

    great video. works and easy to understand.

  • @sunnyclassroom24

    @sunnyclassroom24

    6 жыл бұрын

    Many thanks!

  • @Seule-dc2zb
    @Seule-dc2zb6 ай бұрын

    Extraordinary

  • @elpeurko
    @elpeurko5 жыл бұрын

    this is the best explanation of the division by 2 method I have seen. Thank you!

  • @sunnyclassroom24

    @sunnyclassroom24

    5 жыл бұрын

    You are welcome!

  • @AKA0987
    @AKA09873 жыл бұрын

    So you can convert decimal to binary by subtracting the next smallest power of 2, but can you convert decimal to hexadecimal or octal with the same method?

  • @PomSptz
    @PomSptz4 жыл бұрын

    Nice and clear. Thank you.

  • @sunnyclassroom24

    @sunnyclassroom24

    4 жыл бұрын

    You are welcome!

  • @stephenrodriguez5507
    @stephenrodriguez55073 жыл бұрын

    What is a quick division way for numbers that are in the 10,000's or millions?

  • @nwachukwuchidiebube1839
    @nwachukwuchidiebube18393 жыл бұрын

    Thanks a lot sir

  • @madhuram6328
    @madhuram63283 жыл бұрын

    Thank you so much

  • @aungwin1275
    @aungwin1275 Жыл бұрын

    Thank a lot

  • @Dadada00
    @Dadada00 Жыл бұрын

    Thank u Sr!! U the bestttt !!🥰

  • @kevinfarley661
    @kevinfarley6618 ай бұрын

    i'm trying to do something similar to first example in excel, whereby i enter the first digit (i.e. 127) on one row and subsequent octects on rows two, three and four and to the right as in the example formulas auto generate the ones and zeros but haven't figured out how to do that yet.

  • @praveenkumargummadidala5926
    @praveenkumargummadidala59264 жыл бұрын

    Hi sunny your explanation is very good and one video to EIGRP technology

  • @fikaduabera4185
    @fikaduabera4185 Жыл бұрын

    Thank you

  • @masudulislam7022
    @masudulislam70229 ай бұрын

    thank you

  • @xinong01
    @xinong016 жыл бұрын

    Keep up with good job!

  • @djsnear
    @djsnear4 жыл бұрын

    Thanks!

  • @sunnyclassroom24

    @sunnyclassroom24

    4 жыл бұрын

    You are welcome!

  • @JanetParks-dd5qw
    @JanetParks-dd5qw8 ай бұрын

    Cool

  • @SoranSuleiman
    @SoranSuleiman5 жыл бұрын

    I liked the 2nd method as it is new and more mathematical to me!

  • @engrwehelie9641

    @engrwehelie9641

    5 жыл бұрын

    But the second method is recursive and time consuming I have seen it in #digital_logics

  • @aditya-garg

    @aditya-garg

    Жыл бұрын

    @@engrwehelie9641 Agree, in my intitial days of networking i used to follow repeated division(the mathematical way taught to us during school days). Now I realise that specific to networking, it is the table that helps and must be used for competitive exams.

  • @sandipgangarde2179
    @sandipgangarde21792 жыл бұрын

    Good Explained but I know another method, divide 165 directly by 16 and convert answer in binary. Then Remaining number convert into binary and put this binary right side of previous binary answer.

  • @mauriciomunozortiz
    @mauriciomunozortiz Жыл бұрын

    Thanks

  • @dejong3985
    @dejong39855 жыл бұрын

    great thanks ... but there is a hard in some numbers if we use the first method try the number 92

  • @sunnyclassroom24

    @sunnyclassroom24

    5 жыл бұрын

    01011100

  • @mohanbabupm5778
    @mohanbabupm57782 жыл бұрын

    Whataneasymarvellousrxplan u aregenioustonsofthanks

  • @Wandalf666
    @Wandalf6664 жыл бұрын

    Thank you for explaining this so well

  • @sunnyclassroom24

    @sunnyclassroom24

    4 жыл бұрын

    You're very welcome!

  • @engrwehelie9641
    @engrwehelie96415 жыл бұрын

    Thanks a lot 1:20 I got on to the bus And I immediately subscribed the channel #help full

  • @sunnyclassroom24

    @sunnyclassroom24

    5 жыл бұрын

    thanks.

  • @sadiasarwar191
    @sadiasarwar1915 жыл бұрын

    how the last division is done 1/2?

  • @AliBaba-hn8tv

    @AliBaba-hn8tv

    5 жыл бұрын

    The last remainder of (1 or 0, ) simply becomes the first digit of the resulted binary number.

  • @littlekino
    @littlekino4 жыл бұрын

    thankyou!

  • @sunnyclassroom24

    @sunnyclassroom24

    4 жыл бұрын

    You're welcome!

  • @harry_kim6940
    @harry_kim6940 Жыл бұрын

    2023.07.09 감사합니다.

  • @romelieandrade3669
    @romelieandrade36692 жыл бұрын

    How i know i put 1 or 0 sir?

  • @dalurinzinia829
    @dalurinzinia8294 жыл бұрын

    can someone tell me how am i suppose to know it should start at 128 but not 256 or 512 instead ??

  • @nishitkumar7650

    @nishitkumar7650

    4 жыл бұрын

    There are 8 numbers started 2^7 , 2^6 , 2^5 , 2^4 , 2^3, 2^2, 2^1,2^0 128 , 64 , 32 , 16 , 8 ,4 ,2 ,1

  • @user-kq7bi7zc8p
    @user-kq7bi7zc8p Жыл бұрын

    what if I have the number 35000 as a decimal

  • @SubaHoney
    @SubaHoneyАй бұрын

    😮

  • @MrPittbull30
    @MrPittbull303 жыл бұрын

    I don't know who you are Sunny, but I love you man! Thank you.

  • @ayyanali2220
    @ayyanali22203 жыл бұрын

    thanks sir bcz of you i got 20 by 20 in my comp test

  • @AbdelrhmanZanati
    @AbdelrhmanZanati4 жыл бұрын

    What about subtraction for large numbers?? Like 40000 for example??

  • @samirmurmu3356
    @samirmurmu33563 ай бұрын

    351 का Decimal to Binary

  • @guhaadmedia8954
    @guhaadmedia89544 жыл бұрын

    Teacher how can I understand the remember

  • @k1baede728
    @k1baede7283 жыл бұрын

    Nyah,hewo there,i am here to raid math videos,if u see this comment u are lucky >:3

  • @yashrao2649
    @yashrao26494 жыл бұрын

    talling with mouth (mu sa bolraha hay )

  • @alinalbin9402
    @alinalbin94024 жыл бұрын

    thank you

  • @sunnyclassroom24

    @sunnyclassroom24

    4 жыл бұрын

    You are welcome!