this will b a couple tutorials on how to learn Binary.
i will show u how to actually read a binary code and turn it into a decimal(number) and vice versa
i will also teach u how to convert a decimal u get from a Binary code to ASCII(text).
ok to start off, binary is read from right to left so a code like this: 0011001 would be read starting with the 1 on the right.
now the way u convert a binary code to a decimal all boils down to how well your arithmetic is. each slot on a binary code is multiplied by a power of 2. the first slot from the right would represents a value 1, the second slot would represents a value 2, the third 4, the fourth 8, the the fifth 16, ect.
0' mean off and 1's mean on, so basically a 1 means to use that place and a 0 means not to, but the same rule applies whether it be a 0 or 1.
for example this code- 0000011 equals 3. this value also equals 3- 11. but this value- 0011000 equals 24 why this is is because the 0's still occupy the slot, but ur not applying that to the 1's. you are only adding up the values of the 1's
so for example the code- 01110011 would equal 115. got it? good.
try to work a few of these out for yourself. heres a few to get started on
1100
0011011
00110
1010
00001
11010
ill post how to convert decimals to binary and decimals to ASCII in the next tut. hope this helped sum of you all
P.S. im not exactly the best on sharing my knowledge so CONSTRUCTIVE criticism is obliged.
i will show u how to actually read a binary code and turn it into a decimal(number) and vice versa
i will also teach u how to convert a decimal u get from a Binary code to ASCII(text).
ok to start off, binary is read from right to left so a code like this: 0011001 would be read starting with the 1 on the right.
now the way u convert a binary code to a decimal all boils down to how well your arithmetic is. each slot on a binary code is multiplied by a power of 2. the first slot from the right would represents a value 1, the second slot would represents a value 2, the third 4, the fourth 8, the the fifth 16, ect.
0' mean off and 1's mean on, so basically a 1 means to use that place and a 0 means not to, but the same rule applies whether it be a 0 or 1.
for example this code- 0000011 equals 3. this value also equals 3- 11. but this value- 0011000 equals 24 why this is is because the 0's still occupy the slot, but ur not applying that to the 1's. you are only adding up the values of the 1's
so for example the code- 01110011 would equal 115. got it? good.
try to work a few of these out for yourself. heres a few to get started on
1100
0011011
00110
1010
00001
11010
ill post how to convert decimals to binary and decimals to ASCII in the next tut. hope this helped sum of you all
P.S. im not exactly the best on sharing my knowledge so CONSTRUCTIVE criticism is obliged.
Last edited by r34per on Fri Feb 04, 2011 9:52 pm; edited 1 time in total