Binary String



heres a 8 bit binary string..

01110111

ok going to make this short and sweet.. binary is a string of 8 bits. only using 1's and 0's.. dont think of it as a whole number.. the 1's and 0's means on and off.. 1 means on and 0 means off.. dont let all the 1's and 0's confuse you..

here is how you read it..

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

64+32+16+4+2+1=119 .. very simple just add the 1's .. ( 119 = w )

as you can see the numbers on top are 128,64,32,16,8,4,2,1 it just doubles everytime 1 then 2, 2 then 4 and so on.. its very easy to read it.. ok binary is used because computers only sees binary.. so all programs is broke down into binary..

binary is called the base 2 system it is used to understand are base 10 decimal system which is are letters and numbers.. 1 decimal = 1 byte = 8 bits of binary. so take out notepad and type 1 letter.. save it.. thats 1 byte..

now heres how you turn decimal into hexdecimal which is used in changing colors in html etc..





( DittmerDan.net ) © copyright 2009, all rights reserved. goto main - navigation