Binary Code

I learned it in BCP this year before I learned how to program in HTML... Pretty simple after your 3rd-4th try. I havn't done it in a while so don't ask me how to do it. All i know is that if I reviewed I could do it and that it's really simple.
 
its all based on powers of 2, just as camper was counting there. It actually goes upto 128, basically for counting, all you do is take the number, say 00010101, for all the zeros you dont count the value of the number they represent (somewhat shown above by camper again) and for all the one values you use their number value, so that number there would be 21.
 
Your just telling me 10101100101010 is 35, how do I read it???
errr no

here is your binary index...

128 -- 64 -- 32 -- 16 -- 8 -- 4 -- 2 -- 1


here is a binary number

0 ----- 0 --- 1 --- 0 --- 0 --- 0 -- 1 -- 1 (or without the spaces its 00100011, all binary numbers have 8 binary digits to them, one correpsonding to each bvalue of the binary index shown above)

That binary number 00100011 actually equals 35 due to there being 1 x 32, 1 x 2 and 1 x 1...... 32 + 2 + 1 = 35

Get it yet......


dragon2309 :D
 
Last edited:
well, that wa about as simple as it gets

this is the binary index, its standard everywhere, it never changes.....

128 - 64 - 32 - 16 - 8 - 4 - 2 - 1

when a binary number is generated or typed in, it is always 8 bits long each bit is either a 1 or a 0, either the 1 or the 0 is assigned to each value in the index. If there is a 1 on a value then it is counted, if there is a 0 on a value in the index, then it is NOT counted.... get it

so this, 00000000, will equal 0 because it is NOT counting any value from the index.....

00000001 will equal 1 because there is a 1 in the 1 value of the index

00000110 will equal 6 because there is 1 under the 4 in the index and one under the 2 in the index.... 4+2=6

10010110 - well, work it out, theres 1x128, 1x16, 1x4 and 1x2..... 128+16+4+2= 150

So, as you can see, there is going to be a limit to how big the resulting number can be..... 255 is the upper limit, this iscreated by 11111111, that being 1x128 1x64 1x32 1x16 1x8 1x4 1x2 1x1..... 128+64+32+16+8+4+2+1= 255


Understanding yet.......

dragon2309

PS - binary digits = bits, there are 8 bits in every number, so every number is a byte, just thought i'd tell you that, 00110100 is a byte as it has 8 bits in it.....
 
Last edited:
dragon2309 said:
well, that wa about as simple as it gets

this is the binary index, its standard everywhere, it never changes.....

128 - 64 - 32 - 16 - 8 - 4 - 2 - 1

when a binary number is generated or typed in, it is always 8 bits long each bit is either a 1 or a 0, either the 1 or the 0 is assigned to each value in the index. If there is a 1 on a value then it is counted, if there is a 0 on a value in the index, then it is NOT counted.... get it

so this, 00000000, will equal 0 because it is NOT counting any value from the index.....

00000001 will equal 1 because there is a 1 in the 1 value of the index

00000110 will equal 6 because there is 1 under the 4 in the index and one under the 2 in the index.... 4+2=6

10010110 - well, work it out, theres 1x128, 1x16, 1x4 and 1x2..... 128+16+4+2= 150

So, as you can see, there is going to be a limit to how big the resulting number can be..... 255 is the upper limit, this iscreated by 11111111, that being 1x128 1x64 1x32 1x16 1x8 1x4 1x2 1x1..... 128+64+32+16+8+4+2+1= 255


Understanding yet.......

dragon2309

PS - binary digits = bits, there are 8 bits in every number, so every number is a byte, just thought i'd tell you that, 00110100 is a byte as it has 8 bits in it.....

AAAAAAAAAAH, Now I got it, so 00011101 is 29?
 
Back
Top