I AM TRYING TO UNDERSTAND BINARY
Where to start. Most things we do in math are in base 10, probably because we have 10 fingers. Instead of base 10, binary is base 2. In computers, binary rules because a bit can be set to ON or OFF, 1 being ON, and 0 being OFF.
So the next thing is counting. 0 1 10 11 100 101 110 111 1000 1001
Decimal equivalent 0 1 2 3 4 5 6 7 8 9
How to convert from binary to decimal? Line up the columns and multiply down. For example, 1101. The columns, starting from the right are 2^0, 2^1, 2^2, 2^3, reading ^ as exponent.
See if I can line these up. 1 1 0 1
2^3 2^2 2^1 2^0
8 4 2 1
multiplying down 8 4 0 1
Next step is to add them up. 8+4+1 = 13!
Going the other way, we have to divide by the largest 2^x number, so what is left over and continue dividing until nothing is left.
For example, 56. 2^5 (32) is the largest 2^x number that goes into 56, so we put a 1 in this column. Our remainder is 24. 2^4 (16) goes into this once, so we put a 1 in this column. Our remainder is 8. 2^3(8) goes into this once, so we put a 1 in this column. Now the remainder is 0 so we put a 0 in the 2^2 (4) column, 2^1(2) column, and 2^0 (1) column.
We end up with 111000.
Let me know if you have any questions.
Good luck.
Paul
×