How To Count in Binary and Convert To/From Binary

  Рет қаралды 13,199

Engineer Man

Engineer Man

Күн бұрын

I promise you binary numbering, binary counting, and conversions to and from binary are easy. We just need to learn about our own numbering system first.
Hope you enjoyed the video!
Check out this code here:
github.com/engineer-man/youtu...
Join my Discord server and come say hi:
/ discord
Check out some code on my GitHub:
github.com/realtux
github.com/engineer-man/youtube
Send me a Gab:
gab.com/engineerman
Other Social:
/ engineerman
/ _engineerman
/ engineermanyt

Пікірлер: 82
@EngineerMan
@EngineerMan 2 жыл бұрын
Did you just learn binary today?
@mariajaujou
@mariajaujou 2 жыл бұрын
You could do a short on how to count binary on your fingers ;)
@sourandbitter3062
@sourandbitter3062 2 жыл бұрын
​@LeftandRight A computer speaks in binary. Understanding how base 2 numbers work is necessary to understand programming stuff, e.g. file sizes (Why is a KiB equal to 1024 bytes? Because 1024 is 2 to the power of ten) or bitwise operators that are more frequently used in low level programming languages (C or C++ for example). It's also needed to understand how numbers are stored in a computer and how a CPU does arithmetic operations on base 2 numbers. It's part of every computer science curriculum. Another interesting thing about this is once you understand how bases work, you can count in any base. The third most common base is 16 and the format is called hexadecimal. Since numbers end with 9, hexadecimal uses letters as well.
@PusTIP
@PusTIP 2 жыл бұрын
Nope, it was at school :) but things like this easy to forget, so thank you, that was refreshing.)
@flexairz
@flexairz 2 жыл бұрын
Nope... 30 years ago.. while programming Z80 assembly 😁
@sarkybugger5009
@sarkybugger5009 2 жыл бұрын
I learned about different numbering systems in primary school, in the UK, over 50 years ago. Is this a US thing, or a sad indictment of modern teaching?
@thejoneseys
@thejoneseys 2 жыл бұрын
I've been in IT infrastructure for over 20 years and it's surprising how many people don't fully understand binary or the difference between base 2 and base 10 and that includes network engineers! Great video 👍🏻
@jamesotienoochieng1683
@jamesotienoochieng1683 23 күн бұрын
Don't blame us man! Some of us never had a chance to even see computers while we learnt about computers!
@doctors_strange
@doctors_strange Жыл бұрын
You are a best teacher i was ignoring this bin to dec etc conversion since my degree, understood it today. Thanks Engineering man
@TidusDX
@TidusDX 2 жыл бұрын
Hey man, I subbed to this channel, before doing a CS Degree, which I've just finished. Your Rust HasMaps video popped up when i was looking for help, and seen you've grown exponentially. I'm glad for you, the skills you've taught are practical and fun. Wishing you luck for the future.
@EngineerMan
@EngineerMan 2 жыл бұрын
Thanks for the kind words :)
@davidharms3562
@davidharms3562 2 жыл бұрын
Absolutely brilliant! Yes, I didn’t know how to count in binary. But this explanation definitely helps put it into perspective. Thanks for the detailed explanation. 👍🏻
@ifeoluwaadeyemi8442
@ifeoluwaadeyemi8442 2 жыл бұрын
HOLY HECK! I knew how to count like this cause i learnt it when i was learning subnetting and IP addresses. I never even knew that that is THE way to count binary i thought i was only restricted to networking. Thanks a lot man!!
@caryrabbit
@caryrabbit 2 жыл бұрын
I always learn this every couple years and it makes sense at the time, then I forget because how often are you having to covert to or from binary unless in an interview or something. I think this is the clearest explanation I’ve seen yet and I hope it sticks. Thank you!
@mansbridgejamm72
@mansbridgejamm72 2 жыл бұрын
Not the first time, but first time I've seen the exponent explanation used for a numbering system. Definitely the most straight cut to the point way to describe a number system. With this info you could easily apply it to any numbering system. Great work.
@Jamesbond-oi4bi
@Jamesbond-oi4bi 2 жыл бұрын
This was my first time, yea and your method of teachin is awesome, keep up the good work 👍🏻
@sachetutekar8041
@sachetutekar8041 2 жыл бұрын
Can you tell how 32-bit binary multiplication is done?🤔
@ZacKoch
@ZacKoch 2 жыл бұрын
If you're going to get into networking this is a necessary skill to understand. Nice work 👍
@fossmanmedia
@fossmanmedia 2 жыл бұрын
Great stuff, as always. Your content has been very helpful. Thank you for all of your work here.
@EngineerMan
@EngineerMan 2 жыл бұрын
You're welcome, thanks for the kind words.
@lance_c1323
@lance_c1323 2 жыл бұрын
Im planning to go back to college this year, after 10 years. Definitely very helpful to me
@borntwisted
@borntwisted 2 жыл бұрын
Very well explained, good job!
@pold111
@pold111 2 жыл бұрын
i did not know how binary works or how to count in binary before this, i actually didnt know it was this easy, very thorough explanation
@flickayt938
@flickayt938 2 жыл бұрын
Didn’t know binary until this video thanks
@Darksaber96
@Darksaber96 2 жыл бұрын
I learned binary in uni before, although it never quite clicked for me, but I think I got it now, thanks!
@jasonchadwell
@jasonchadwell 2 жыл бұрын
Thanks after watching this I can easily convert from decimal to binary.
@soulofaiden8149
@soulofaiden8149 2 жыл бұрын
My teacher tried to explain binary to us 50 minutes and I couldn't understand a thing. 5 minute video, perfectly understood. Nice video man!
@xeqqail3546
@xeqqail3546 2 жыл бұрын
This is one of the best video explanations about binary!
@AnonymousAccount514
@AnonymousAccount514 2 жыл бұрын
wow....thats the best explanation ive ever heard
@ipopus2
@ipopus2 2 жыл бұрын
I am a maths teacher in France and I teach maths in English once a week to my students. I just taught them how to convert binary numbers to decimal numbers and vice-versa. I wish I had your video to show them... I'll have it for next year, thanks !
@LibreLobo
@LibreLobo 2 жыл бұрын
Very cool! Thank you! 👏
@tedlasso2887
@tedlasso2887 2 жыл бұрын
Knew the Binary system still this video was informative I liked how you converted from decimal to binary
@_veikkomies
@_veikkomies Жыл бұрын
Cool video! I had learned it before but I haven't used it so it's easily forgotten. I think you should do a similar video for hexadecimal
@nikolai_kury
@nikolai_kury 2 жыл бұрын
Holy funk, we were going one by one in school, what a shitty education…. Thank you
@villehietala9677
@villehietala9677 2 жыл бұрын
I'll have to tell my story of finally learning binary. I am an electrician and when i was starting to get "my own" projects, I often got to start projects that seemed nice and would pay well, but then our company changed someone else to do it and i got some bad one in exchange. After that had happened several times and i realized there is a pattern, i got to start a project from scratch and thought that i should at least confuse my older work mates and started to mark every cable in binary and by doing that, had to calculate all the numbers in my head. Nobody knew that i had done it, but that eventually was my first site which I got to do from start to finish. Would have been funny to tell my confused colleagues to just learn binary and carry on. It would not had been that hard, as the whole project was just 15 apartments, which had under 20 fuses each, so 4-5 bits max per marking. That was nearly 20 years ago and i have since told what i did to the guys who were the most likely candidates to replace me on that site. They should also learn binary anyways, as there is a lot of settings and bus-addresses etc in electrical equipment, which you input with dip-switches, basically as binary values.
@scruffygaming627
@scruffygaming627 2 жыл бұрын
not my first time using binary, but good explanation, i'll keep it in mind next time someone asks me :)
@MichaelScholten
@MichaelScholten 2 жыл бұрын
I've known how to count in binary for a while but I don't think I knew how to convert decimal to binary. Thanks!
@-21nazariiflorchuk10
@-21nazariiflorchuk10 Жыл бұрын
tnx dude:) i finally understand:)
@Raaampage
@Raaampage 2 жыл бұрын
Yes first time learning how to count in binary, I didn't really need it thus why I never actually tried to learn it ^^ Thank you :)
@SpiritedAway12
@SpiritedAway12 2 жыл бұрын
Yes. This takes me back to highschool
@theguy2537
@theguy2537 2 жыл бұрын
i already knew it and yes it is easy ur epic man
@ma7eer
@ma7eer 2 жыл бұрын
super useful!
@bschnoza473
@bschnoza473 Жыл бұрын
This is so cool!!!
@glennmiller394
@glennmiller394 2 жыл бұрын
When I started programming in 1975, you had to be fluent in binary and hexadecimal. The first program I wrote 'unpacked' EBCDIC in IBM Assembler. Memories.
@PascalxSome
@PascalxSome 2 жыл бұрын
Nicely explained. I know it quite a time, but as trainer this is a really good explanation. and straight forward.
@sosweis
@sosweis Жыл бұрын
waw i just learn binary today , thanks engenieerMan
@dolodestinations7628
@dolodestinations7628 2 жыл бұрын
does Iphone have a version of ADB shell? To control the app games like you do on android?
@johncarrick4639
@johncarrick4639 2 жыл бұрын
Can you show how to multiply, subtrat, sum and divide binary numbers, oct, hexa between them? And also binary vs binary, octal vs octal and hexa vs hexa. And binary vs decimal, octal vs decimal hexa vs decimal and vice-versa? Im stuck on learning this.
@onaucc9899
@onaucc9899 2 жыл бұрын
My question is: do i always have to write the "full plate" of 0s and 1s? For example if i want to write down "1" in binary, do i have to wirte "0 0 0 0 0 0 0 1" or is there another, shorter way without it becomeing not-binary? Also what about huuuuge numbers? If i go into the billions, do i keep using the format that only goes up to 128 or do i add another 0 in the beginning that repesents 256 or another one that represents 512? And if that's the case: do i need to start "counting" from right to left and then add those numers back together?
@EngineerMan
@EngineerMan 2 жыл бұрын
You can definitely truncate unused zeroes from the left when representing a single number. The number I wrote was 8 bits that would fit into 1 byte on a computer. The representation is necessary so a computer knows where the binary number starts and ends. For larger numbers, keep adding digits on the left.
@cwlindWX
@cwlindWX 2 жыл бұрын
If I'm not mistaken, in programming, those 8 bits are a "byte". Once you go over a byte (128), you start adding bytes together. In just using binary (not programming), then yes, I think you would just keep adding digits on the left. Depends on the context. (I'm sure others will correct me if I'm wrong).
@koppadasao
@koppadasao 2 жыл бұрын
@@cwlindWX A byte is 0-255
@prestonknodelliii838
@prestonknodelliii838 2 жыл бұрын
I've always struggled with adding and subtracting Roman numerals Engineer Man. MDCLIV + DLX = ? (for example). I just don't get it.
@Rmly
@Rmly 2 жыл бұрын
good
@thepianoaddict
@thepianoaddict 2 жыл бұрын
Once you get the hang of the fact that shifting to the left isn't a multiplication of 10, but of 2, it becomes easier to see what different patterns mean. For example: 00101 = 5 01010 = 10 10100 = 20 Etc So once you spot a 101 in a binary number, as long as it's not at the very right of the number, it's a multiple of 10. You can then count the amount of bits it is away from the 10 position, and multiply 10 by 2 for every time it was shifted. 10100000 is shifted 4 times, so 2x2x2x2 (16) 10x16=160 So 10100000=160 This works for every number, but I picked 10 because it was easiest for obvious reasons.
@marouk10
@marouk10 2 жыл бұрын
How do you go about it with lager decimal numbers?
@ZacKoch
@ZacKoch 2 жыл бұрын
It's all about powers of 2.... Use the same substraction method he used. Say your number is 16,000. The binary representation is: 0011111010000000. You can see bits 8192,4096,2048,1024,512,128 are 'flipped'. The decimal values under binary won't show up well but it looks like this: 32768,16384,8192,4096,2048,1024,512,256,128,64,32,16,8,4,2,1
@marouk10
@marouk10 2 жыл бұрын
@@ZacKoch thanksss!!! What does flip mean?
@ZacKoch
@ZacKoch 2 жыл бұрын
@@marouk10 0 not flipped or off, 1 flipped or on
@marouk10
@marouk10 2 жыл бұрын
@@ZacKoch ohhhh righttt okok thanksss
@JoshuaPaxton
@JoshuaPaxton 2 жыл бұрын
Binary decimals, or fractions?
@chillydickie
@chillydickie 2 жыл бұрын
Ok now i can remember what 755 and 700 is. Haha
@eduardofernandes9881
@eduardofernandes9881 2 жыл бұрын
So that means 56 in binary is 00111000?
@bartmeeus9033
@bartmeeus9033 2 жыл бұрын
you can just cut off the 00 at front, they hold no value so not needed to place them
@koppadasao
@koppadasao 2 жыл бұрын
How slow people are! Took me about 10 seconds to convert 87 to binary *in my head* 1010111
@titouant1936
@titouant1936 2 жыл бұрын
Now imagine if we had 10 fingers
@MrYyrkoon
@MrYyrkoon 2 жыл бұрын
Honestly, it's like memorizing a whole programming language for the 50th time. Microsoft Calculator in programmers mode. So simple to switch base 10Base 16Base 2. Now explain what a nibble is or a byte, or bit shifting or bit masking . . . Seriously, I think modern programmers really need to understand the importance of bit operations versus, say, multiplication / division in code.
@scruffygaming627
@scruffygaming627 2 жыл бұрын
I'd love to hear a clear bit-shifting / bit-masking explanation, that'd be very useful. I've had someone try to explain it and they just made it more confusing than it really is. Had to learn it on my own.
@MrYyrkoon
@MrYyrkoon 2 жыл бұрын
@@scruffygaming627 It's sometimes best to think about bit shifting in the context of base 10 multiplication. For instance, you have a number 10.1 multiply it by 10 to get the number 101. What happened to the decimal ? It "shifted" right one decimal place. To get more complicated, think about a memory register such as 0000 0101. If you shift to the right, the value becomes 0000 0010, but if you shift back to the left, you get 0000 0100. Which is an example of how / why one needs to be careful. In the case of a memory register this could likely be very important. But Coordinate math in a game likely not important at all. There is a book out there I read in the (90's ? ) By a guy named Andre Lamothe I believe, called tips and tricks of the game programming gurus. He has a very good explanation of bit shifting. Now as for bit masking, well you need to fully understand AND/OR operations, and perhaps learn about memory registers. Bit masking for me hit home once I started learning about embedded hardware, and bit shifting hit home when when I was learning graphics programming for mode 13h(very old school). I'd consider the two related. One last thing. You're going to need to convert between Base 10Base 16Base 2 alot while learning. Which is why I suggested Microsofts Calculator in programmers mode. I'm sure there is a equivalent in other operating systems as well. But personally I always write my code from Windows, and mostly compile on Linux. As I'm usually cross compiling for ARM.
@MrYyrkoon
@MrYyrkoon 2 жыл бұрын
I should also point out. That bit operations wont work with floating point numbers. You need to understand the specification as to why. But you need to use integer type numbers for bit operations to work. There is a way around that though. Known as fixed point math. But worry about that later . . .
@sss-xj7rj
@sss-xj7rj 2 жыл бұрын
Hey. does anyone know how to track down someones ip adress on Discord? there is this scammer on discord who scammed one of my friend and now i want to track him down
@joymackey8218
@joymackey8218 2 жыл бұрын
Please i have question is there a way to convert .loli file or .anom or .svb to .py ??? someone said yes but i can't find anything thank you for your time 🌹
@allenscenery
@allenscenery 2 жыл бұрын
Sometimes I wonder if technology would be more advanced if humans are custom to thinking in octal or hexadecimal.
@scruffygaming627
@scruffygaming627 2 жыл бұрын
Sometimes i wonder if technology would be more advanced if computers were not restricted to human thinking. :) Look at how a machines write code compared to humans. Computers are far more efficient thinkers/doers. One of the reasons AI development will surprise human.
@allenscenery
@allenscenery 2 жыл бұрын
@@scruffygaming627 agrees but not my original point. Decimal is the default in the human mind due to historical reasons. Kinda arbitrary. Hex or Oct-based system is more natural.
@Stoney_Eagle
@Stoney_Eagle 2 жыл бұрын
Hehe I can't count to 128 on one hand ✋ I learned this in school a long time ago 😉
@techworld3043
@techworld3043 2 жыл бұрын
first
@meisterunner
@meisterunner 2 жыл бұрын
Wonder how many people are going "why so many equal signs?"
@johngonzales1163
@johngonzales1163 2 жыл бұрын
0001
Binary - The SIMPLEST explanation of Counting and Converting Binary numbers
22:15
How To Count in Binary
12:23
CHM Tech
Рет қаралды 6 М.
The delivery rescued them
00:52
Mamasoboliha
Рет қаралды 8 МЛН
Универ. 13 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:07:11
Комедии 2023
Рет қаралды 1,3 МЛН
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 12 МЛН
How I Would Learn To Code (If I Could Start Over)
13:43
Namanh Kapur
Рет қаралды 7 МЛН
Understanding Binary, Hexadecimal, Decimal (Base-10), and more
10:44
Corey Schafer
Рет қаралды 180 М.
How To Convert Decimal to Binary
13:24
The Organic Chemistry Tutor
Рет қаралды 4,3 МЛН
Using My Python Skills To Punish Credit Card Scammers
7:13
Engineer Man
Рет қаралды 4,8 МЛН
Difficult Programming Concepts Explained
11:13
Engineer Man
Рет қаралды 68 М.
Binary Numbers Explained for Beginners
14:26
Steve Cope
Рет қаралды 29 М.
Git Good: Solo Development Use Cases
12:24
Engineer Man
Рет қаралды 29 М.
Converting an IP Address to Binary -- it's EASY
8:24
Carl Oliver
Рет қаралды 41 М.
CUDA Explained - Why Deep Learning uses GPUs
13:33
deeplizard
Рет қаралды 225 М.
5 НЕЛЕГАЛЬНЫХ гаджетов, за которые вас посадят
0:59
Кибер Андерсон
Рет қаралды 1,4 МЛН
iPhone 15 Unboxing Paper diy
0:57
Cute Fay
Рет қаралды 2,2 МЛН
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 24 МЛН
С Какой Высоты Разобьётся NOKIA3310 ?!😳
0:43