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
0:22 - Method 1: Repeated "find and subtract" 3:42 - Method 2: Repeated "division by 2"
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🥺🥺🥺
Simple and articulate. Many thanks for sharing.
i have a quiz tomorrow and you make things easy, so great i found your video! this help me a lot
Great video, cleared my concept ! very much thanks
A great video and a great chanel for learning.
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
5 жыл бұрын
Thank you very much for your kindness.
thank you so much!! well explained!!!
Well done!
thanks, very helpful and easy method !!!
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?
thank you for the second method it helped me alot
Thanks for the 2nd method
Awesome...!!!
Sunny you are just a genius
such awesome video! Thank you!
@sunnyclassroom24
4 жыл бұрын
You are welcome!
second video i watched love your videos
This really helped me in my homework
great video. works and easy to understand.
@sunnyclassroom24
6 жыл бұрын
Many thanks!
Extraordinary
this is the best explanation of the division by 2 method I have seen. Thank you!
@sunnyclassroom24
5 жыл бұрын
You are welcome!
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?
Nice and clear. Thank you.
@sunnyclassroom24
4 жыл бұрын
You are welcome!
What is a quick division way for numbers that are in the 10,000's or millions?
Thanks a lot sir
Thank you so much
Thank a lot
Thank u Sr!! U the bestttt !!🥰
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.
Hi sunny your explanation is very good and one video to EIGRP technology
Thank you
thank you
Keep up with good job!
Thanks!
@sunnyclassroom24
4 жыл бұрын
You are welcome!
Cool
I liked the 2nd method as it is new and more mathematical to me!
@engrwehelie9641
5 жыл бұрын
But the second method is recursive and time consuming I have seen it in #digital_logics
@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.
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.
Thanks
great thanks ... but there is a hard in some numbers if we use the first method try the number 92
@sunnyclassroom24
5 жыл бұрын
01011100
Whataneasymarvellousrxplan u aregenioustonsofthanks
Thank you for explaining this so well
@sunnyclassroom24
4 жыл бұрын
You're very welcome!
Thanks a lot 1:20 I got on to the bus And I immediately subscribed the channel #help full
@sunnyclassroom24
5 жыл бұрын
thanks.
how the last division is done 1/2?
@AliBaba-hn8tv
5 жыл бұрын
The last remainder of (1 or 0, ) simply becomes the first digit of the resulted binary number.
thankyou!
@sunnyclassroom24
4 жыл бұрын
You're welcome!
2023.07.09 감사합니다.
How i know i put 1 or 0 sir?
can someone tell me how am i suppose to know it should start at 128 but not 256 or 512 instead ??
@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
what if I have the number 35000 as a decimal
😮
I don't know who you are Sunny, but I love you man! Thank you.
thanks sir bcz of you i got 20 by 20 in my comp test
What about subtraction for large numbers?? Like 40000 for example??
351 का Decimal to Binary
Teacher how can I understand the remember
Nyah,hewo there,i am here to raid math videos,if u see this comment u are lucky >:3
talling with mouth (mu sa bolraha hay )
thank you
@sunnyclassroom24
4 жыл бұрын
You are welcome!