Admiral Refuge Posted March 12, 2009 Author Share Posted March 12, 2009 This is more of a rant from after reading that riddle game in Forum Games.01010111 01010010 01001111 01001110 01000111What do you see?Do you know what these really say?If you were to paste them into one of those ascii converters, you'd getWRONGBut, what if you were to conver them by hand?You would get:87 82 79 78 71Which of course, means WRONG if you follow the ascii table.IDK, do they still teach Binary (or number systems of other bases) in schools anymore? I'm sure about 95% of Eclipse knows what Binary is either way… Out of that, probably 60+% of the members would see the above, and paste it into the Binary to Ascii Converter thing... The rest probably already know how the binary number system works.But for those who don't, how does it work???The most used number system is the Decimal System. This is a number to the base of 10 (or, n10). There is a very easy way of breaking numbers down from their bases. Consider the following number:5,39610Can be broken down into:5*103 + 3*102 + 9*101 + 6*100The same can be said about a Binary didigt…Only differnense, is that binary numbers are at the base 2.Quick example:1110012 = 1*25 + 1*24 + 1*23 + 0*22 + 0*21 + 1*20 = 57Let's look at another number:A30C616 = 10*164+3*163+0*162+12*161+6*160 = 667846Am I making any sense?What about converting Dec to Bin?Try to remember these (or keep them for refrence):20=121=222=423=824=1625=3226=6427=12828=25629=512210=1024211=2048212=4096213=81928192 + 0 + 2048 + 0 + 0 + 0 + 128 + 0 + 32 + 16 +0 + 4 + 1Say you want to convert the number 10421 into Binary. How would you do this?First, look at that chart above, and find the highest number to 10421 (without going over it). In this case, it's 8192.So we subtract 8192 from 10421, we get 2229.So the new number, is:8192 + 2129Next, we see what comes closest to 2129. It's 2048, isn't it? But look! We're skipping 4096! So this is what we do:8192 + 0 + 2048 + 181Next, we look for one that comes close to 181, which is 128. But we're skipping three spaces, so the new number is:8192 + 0 + 2048 + 0 + 0 + 0 + 128 + 53Next, we do the same thing with 53, to get:8192 + 0 + 2048 + 0 + 0 + 0 + 128 + 0 + 32 + 21Then, we get:8192 + 0 + 2048 + 0 + 0 + 0 + 128 + 0 + 32 + 16 + 5Which equals:8192 + 0 + 2048 + 0 + 0 + 0 + 128 + 0 + 32 + 16 + 0 + 4 + 0 + 1In binary, you would replace the numbers > 0 with 1s to get:10100010110101So the full thing, would be:1042110 =8192 + 2129 =8192 + 0 + 2048 + 181 =8192 + 0 + 2048 + 0 + 0 + 0 + 128 + 53 =8192 + 0 + 2048 + 0 + 0 + 0 + 128 + 0 + 32 + 21 =8192 + 0 + 2048 + 0 + 0 + 0 + 128 + 0 + 32 + 16 + 5 =8192 + 0 + 2048 + 0 + 0 + 0 + 128 + 0 + 32 + 16 + 0 + 4 + 0 + 1 =1*213 + 0*212 + 1*211 + 0*210 + 0*29 + 0*28+ 1*27 + 0*26 + 1*25 + 1*24 + 0*23 + 1*22 + 0*21 + 1*20 =101000101101012xDPS: Would this be better in one of the Programming Tutorial boards or something like that? Link to comment Share on other sites More sharing options...
Zarnick123 Posted March 12, 2009 Share Posted March 12, 2009 at my school you learn it if you take Cisco Networking. We are the only school in michigan that takes the course. It is a very easy concept to grasp. Easiest to use columns to organize where 1s and 0s go Link to comment Share on other sites More sharing options...
makairu Posted March 12, 2009 Share Posted March 12, 2009 Interesting, I knew that binary used a base 10, but other than that it made no sense to me at all. I'm still slightly confused, but you explained it rather well. :cheesy: Link to comment Share on other sites More sharing options...
Drummerpete Posted March 12, 2009 Share Posted March 12, 2009 I learned binary in school.Was really easy. xDI liked the128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1Now, for every colum that has a 1 in it, add those numbers together, that is what binary is.I know it's not so clear, the way I explained it, but that's how we learned it. xD Link to comment Share on other sites More sharing options...
Admiral Refuge Posted March 12, 2009 Author Share Posted March 12, 2009 @Bob:> I learned binary in school.> > Was really easy. xD> > I liked the> > 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1> 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1> > Now, for every colum that has a 1 in it, add those numbers together, that is what binary is.> > I know it's not so clear, the way I explained it, but that's how we learned it. xDActually, that's a pretty good way of explaining it; I've used columns before Link to comment Share on other sites More sharing options...
Drummerpete Posted March 12, 2009 Share Posted March 12, 2009 It made it really easy; I just can't explain things well :P Link to comment Share on other sites More sharing options...
Hippoman789 Posted March 12, 2009 Share Posted March 12, 2009 the real answer is On off. Link to comment Share on other sites More sharing options...
Anna Comnena Posted March 12, 2009 Share Posted March 12, 2009 That's boolean not binary. Link to comment Share on other sites More sharing options...
Guest Posted March 12, 2009 Share Posted March 12, 2009 Binary is 100% useless as actual words and I hate when people use it this way. I learned binary years ago when covering boolean algebra for digital electronic logic diagrams. Its basically using the same concept of binary to represent conditions in electronic circuits.Pretty nifty, however, even in programming, I don't ever worry about conversions, since there are functions to do it for you.Anna, boolean is binary like I just described. 1 = true, 0 = false. Or in digital electronics On and Off. Link to comment Share on other sites More sharing options...
Anna Comnena Posted March 12, 2009 Share Posted March 12, 2009 Yeah but Hippo said on/off for binary, but that isn't exactly binary because binary has the other digits. Link to comment Share on other sites More sharing options...
ddunit Posted March 12, 2009 Share Posted March 12, 2009 011011100101110111100010011010101111001101111011111000010001100101001110100and so on XD Link to comment Share on other sites More sharing options...
Guest Posted March 12, 2009 Share Posted March 12, 2009 Binary can only produce two possibilities.When speaking of computers, the hard drive stores binary data in terms of magnetic cell polarity. In compact discs or DVD's it store data in terms of hills and valleys ( a laser cuts microscopic holes in CD's to represent ones and zeros ).Even though you can count forever in binary, its actually just saying on off on off off on on and etc. Actually counting binary is just a way of converting to the binary system. ACTUALLY counting in base 2 stops at 1 lol. Link to comment Share on other sites More sharing options...
Hippoman789 Posted March 13, 2009 Share Posted March 13, 2009 so binary is a non gay better version of Pi? Link to comment Share on other sites More sharing options...
makairu Posted March 13, 2009 Share Posted March 13, 2009 @Hippoman:> so binary is a non gay better version of Pi?I literally lol'd when I read this.Um, so, aren't most modern programming languages just glorified commands that get translated into binary? Link to comment Share on other sites More sharing options...
Guest Posted March 13, 2009 Share Posted March 13, 2009 Yes, ultimately it will be read as binary, which is able to feed voltages as On and Off to the electronic components of the actual PC to operate properly. Its quite phenomenal really.Hippoman, no, that doesn't even make sense….. Link to comment Share on other sites More sharing options...
makairu Posted March 13, 2009 Share Posted March 13, 2009 interesting… Link to comment Share on other sites More sharing options...
Guest Posted March 13, 2009 Share Posted March 13, 2009 Also I just noticed, DDunit, you cant remove the zeros in front of the decimal, base 2 is in groups of 4 always. You cant just change it even though the zeros don't count hah.For example:011011100101110111100010011010101111001101111011111000010001100101001110100Should be written:00000001001000110100010101100111100010011010101111001101111011110001 00000001 00010001 00100001 00110001 0100Sorry to nit pick, but if someone was looking at this for school, would be wrong hah. Its very important to keep your places for when you start converting to bases that aren't in sections of four. Link to comment Share on other sites More sharing options...
Hippoman789 Posted March 13, 2009 Share Posted March 13, 2009 what about sections of 5? Link to comment Share on other sites More sharing options...
Guest Posted March 13, 2009 Share Posted March 13, 2009 Hippoman, that is considered spam ;)@Bob Smith, I've never used that column system before, always just memorized the place values and added them together. I'm going to use that for now it, its epic. Link to comment Share on other sites More sharing options...
Hippoman789 Posted March 13, 2009 Share Posted March 13, 2009 I just wanted to know…you said sections of four...can it only go to four? i need to know stuff too you know. Link to comment Share on other sites More sharing options...
Guest Posted March 13, 2009 Share Posted March 13, 2009 Binary is always in sets of four. Only one of the number systems isn't in a set of four, but actually three. I may be wrong on this as I never use it, but I think either octal or hex is in sets of 3. Link to comment Share on other sites More sharing options...
Hippoman789 Posted March 13, 2009 Share Posted March 13, 2009 can i use sextuptupla? Link to comment Share on other sites More sharing options...
Admiral Refuge Posted March 13, 2009 Author Share Posted March 13, 2009 Crank, I was mainly trying to explain the math behind a base 2 number system (I also had Hex in that post somewhere).I'd love to learn how to use binary to control a processor or other electronics; we're not going that deep into it with my object-oriented programming courses Link to comment Share on other sites More sharing options...
Reguba Posted March 13, 2009 Share Posted March 13, 2009 Oh man… I loved learning binary and how to use it for all sorts of things on the computer. Honestly learning binary in a computer science class is some of the most fun I've had :P I is geek, I know. Oh the joys of seeing who is connected to what network using binary... That was amusing to me. Given two unique IP's and finding if they are on the same network lol I had a lot of fun with that junk. Link to comment Share on other sites More sharing options...
Guest Posted March 13, 2009 Share Posted March 13, 2009 Admiral, on compent level, its no longer 1 and 0 but a digital high or low. Its measured in terms of voltage. In digital electronics they are called gates, they only trigger when a certain condition is met.For example, and or gate is a chip with 2 inputs and 1 output. If either input 1 or 2 read a high (from 2-5 volts or something like that) then a high is sent from the output. Most logic gates are constructed of a few transistors to act like switches in passing voltage.A processor core is really only millions and millions of transistors (small electronic components that act like gates/switches to register a binary one or zero) to flow logic. The whole mother board on a component level really only consists of a handful of different components. Thats the kind of things we learn about in my class. Its amazing<3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now