what's up guys it's Bucky and in this tutorial I'm going to be showing you guys how binary code works now in case you don't know what binary code is is pretty much all those zeros and ones that the computer understands what you can't and with these zeros and ones it could translate that to make any number in the world and I know you guys are asking how can you make any number using just zeros and ones well I Promise You by the end of this tutorial you will learn that now in case you ever heard of someone talking about bits and bytes probably if you ever been around a computer if they say my Ram has 512 megabytes in it or I have a 32-bit processor or um like Nintendo 64 and stuff that 64 is based on bits and bytes and binary code so by the end of this tutorial you're going to understand all of that but before we understand bits and bites we need to First understand how our number system works our number system is a base 10 number system that means we got 10 numbers to work with 0 through 9 unlike um binary which is a base two computer system which means it only has two numbers ones and zeros and um let me show you guys a number real quick what this pretty much uh represents is that any number can rep can be represented by combining any other number in our system so if we want to make the number 463 we need to use the four the six and the three now the three represents the one spot the six represents the uh 10 spots and the four represents the 100 spots and as you can see as I'm talking um those are all 11 10 100 1,000 million those are all factors of 10 so that's pretty much how our number system works on base 10 but the computer number system it works a little bit different it only has two numbers and this um um this is just a little tidbit of information the word bit comes from binary digit see B it bit and for example if you wanted a four bit system that means you're going to have four numbers 1 0 0 1 or it could be 1111 or 000000 0 however many numbers you have that's how many bits are in your system now um let's just get down to it and let me explain to you guys how binary code works now as you can see instead of 1 10 100 um a th000 we increment in factors by two and that is 1 2 48 and the next number you can just uh go along with by timesing the previous number by two and by using these numbers we can come up with any number from um 0 to 128 now as you can see this is a basic 8 bit system but if you want to use a bigger Ranger number say you want to go to like uh 6 billion then you might use something like a 64-bit system but this is pretty much an 8bit system and by the time I'm done showing you guys how this works you're going to be understand you're going to understand how uh a 64 256 bit system works so we saying all right what if I want to get the number uh 19 now if I had a 10base system I would just write one and nine but we don't we have this 8 bit system so what the heck are we supposed to do what you have to do is look at all of your bits 128 64 326 8421 and there's only one way that you can add these numbers to create the number 19 so you start with the biggest number and that's 128 if you can use 128 and 19 put one if you can't put zero so can 128 kill into 19 no it can't zero can 64 nope still bigger 32 nope still bigger can 16 go into 19 yes it can go in once now what do you have to add to 16 to get 19 do you add eight no do you add four Noe that'll give you 20 do you add two yeah but that'll give you 18 do you add one yep that gives you 19 right there so in 8bit system the binary code for 19 is 0 01 011 and the computer understands this and it's his job to take all this code and interpret it into the number 19 so let's do another one or uh two say you um say you want the number uh 64 uh let me just write there write it right there can 128 go into 64 nope can 64 go into 64 yep and there is no need since we already have it we just fill in all the rest for zeros right here right there so the B binary code in an 8bit system and remember Eight 8bit system means there are eight numbers 0 1 0 0 0 0 0 0 and that means 64 and as you can see by using this we can get any number from 0 to 128 and if you're saying all right how do I get zero if there's no zero that's easy just put zero for everything thing 0 0000 0 0 0 0 0 and no matter how many bit systems you're running all zeros mean a zero and of course the maximum that you can have actually I lied this is a 255 so this has a range from zero to 255 and if you're wondering all right how do I get the number 255 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 equal 255 and if you don't believe me then you can check it and if you want 254 just change this one to a zero 128 + 64 + 32 + 16 + 8 + 4 + 2 = 254 so those are the basics on how binary code works and how you can use ones and zeros to combine these and uh use this to get any number you ever dream them your only limitations is how many bits are on your system and um that's what scientists and uh uh whatever Engineers are trying to develop to get the biggest base bit system so we can transfer more data and have a bigger range of numbers so the that is your simple tutorial on how binary works so now that you understand uh how you can use ones and zeros to get any number on the computer I hope you learned something uh thank you guys for watching make sure if you have any questions to check out my website the new boston.com and I'll answer any questions you have there so again thanks for watching make sure to subscribe and I'll see you next time