 |
|
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..
|
decimal
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
|
hex
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
A
|
B
|
C
|
D
|
E
|
F
|
| goto ascii.cl this site has conversion from binary - decimal - hexdecimal - html ascii this site has it all. all your little hexing needs.. here is a free hex editer. it turns binary into hex. open up programs with it. here is my page of my hex color codes. |
|
|
|