How To Count in Binary and Convert To/From Binary

Поделиться
HTML-код
  • Опубликовано: 29 июн 2024
  • 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 года назад +40

    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 года назад +3

      ​@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 года назад +1

      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 года назад +6

    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 Месяц назад

      Don't blame us man! Some of us never had a chance to even see computers while we learnt about computers!

  • @davidharms3562
    @davidharms3562 2 года назад +13

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

  • @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

  • @ifeoluwaadeyemi8442
    @ifeoluwaadeyemi8442 2 года назад +1

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

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

  • @caryrabbit
    @caryrabbit 2 года назад +1

    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!

  • @ipopus2
    @ipopus2 2 года назад +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 !

  • @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 :)

  • @Jamesbond-oi4bi
    @Jamesbond-oi4bi 2 года назад +2

    This was my first time, yea and your method of teachin is awesome, keep up the good work 👍🏻

  • @fossmanmedia
    @fossmanmedia 2 года назад +1

    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.

  • @ZacKoch
    @ZacKoch 2 года назад +1

    If you're going to get into networking this is a necessary skill to understand. Nice work 👍

  • @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

  • @villehietala9677
    @villehietala9677 2 года назад +3

    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.

  • @sachetutekar8041
    @sachetutekar8041 2 года назад +5

    Can you tell how 32-bit binary multiplication is done?🤔

  • @borntwisted
    @borntwisted 2 года назад

    Very well explained, good job!

  • @lance_c1323
    @lance_c1323 2 года назад

    Im planning to go back to college this year, after 10 years. Definitely very helpful to me

  • @soulofaiden8149
    @soulofaiden8149 2 года назад +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!

  • @Darksaber96
    @Darksaber96 2 года назад +1

    I learned binary in uni before, although it never quite clicked for me, but I think I got it now, 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 2 года назад

    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

  • @xeqqail3546
    @xeqqail3546 2 года назад

    This is one of the best video explanations about binary!

  • @flickayt938
    @flickayt938 2 года назад

    Didn’t know binary until this video thanks

  • @jasonchadwell
    @jasonchadwell 2 года назад

    Thanks after watching this I can easily convert from decimal to binary.

  • @nikolai_kury
    @nikolai_kury 2 года назад

    Holy funk, we were going one by one in school, what a shitty education….
    Thank you

  • @AnonymousAccount514
    @AnonymousAccount514 2 года назад

    wow....thats the best explanation ive ever heard

  • @scruffygaming627
    @scruffygaming627 2 года назад

    not my first time using binary, but good explanation, i'll keep it in mind next time someone asks me :)

  • @-21nazariiflorchuk10
    @-21nazariiflorchuk10 Год назад

    tnx dude:) i finally understand:)

  • @PascalxSome
    @PascalxSome 2 года назад +2

    Nicely explained. I know it quite a time, but as trainer this is a really good explanation. and straight forward.

  • @bschnoza473
    @bschnoza473 Год назад

    This is so cool!!!

  • @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 :)

  • @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!

  • @ma7eer
    @ma7eer 2 года назад

    super useful!

  • @theguy2537
    @theguy2537 2 года назад

    i already knew it and yes it is easy ur epic man

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

  • @sosweis
    @sosweis Год назад

    waw i just learn binary today , thanks engenieerMan

  • @SpiritedAway12
    @SpiritedAway12 2 года назад

    Yes. This takes me back to highschool

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

  • @thepianoaddict
    @thepianoaddict 2 года назад +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.

  • @dolodestinations7628
    @dolodestinations7628 2 года назад

    does Iphone have a version of ADB shell? To control the app games like you do on android?

  • @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

  • @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 года назад +1

      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

  • @marouk10
    @marouk10 2 года назад

    How do you go about it with lager decimal numbers?

    • @ZacKoch
      @ZacKoch 2 года назад +1

      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 года назад +1

      @@marouk10 0 not flipped or off, 1 flipped or on

    • @marouk10
      @marouk10 2 года назад

      @@ZacKoch ohhhh righttt okok thanksss

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

  • @titouant1936
    @titouant1936 2 года назад

    Now imagine if we had 10 fingers

  • @koppadasao
    @koppadasao 2 года назад

    How slow people are! Took me about 10 seconds to convert 87 to binary *in my head* 1010111

  • @chillydickie
    @chillydickie 2 года назад

    Ok now i can remember what 755 and 700 is. Haha

  • @JoshuaPaxton
    @JoshuaPaxton 2 года назад

    Binary decimals, or fractions?

  • @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 😉

  • @meisterunner
    @meisterunner 2 года назад

    Wonder how many people are going "why so many equal signs?"

  • @techworld3043
    @techworld3043 2 года назад

    first

  • @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

  • @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 🌹

  • @johngonzales1163
    @johngonzales1163 2 года назад +1

    0001