Thursday, February 22, 2007

Binary conversions

In the binary code, every 1 means yes or on and every 0 means no or off. To convert a binary number such as 110010101, I did (2^0 + 2^2 + 2^4 + 2^7 + 2^8= 405). i used those numbers because binary is a base 2 system. and for every 1, reading from right to left, the exponent goes up 1 (starting at 0). whenever there was a 0, i just skipped it and left it as a 0 since it means "off" and whenever there was a 1, i did 2^(position of the 1) since it means "on". I then added them all up as shown above to get 405.

To convert a decimal number such as 529 to binary, you must do the following:
-Take the original number, 529, and divide it by 2. If you get a remainder you should put down a 1 and round the number down so that you can divide it by 2 again. If you were to get a number to divide with no quotient, then you put down a zero. You should plot down your 1's and 0's going from right to left as you divide the number. 529 should come out to be 1000010001 if done correctly.

A positional number system is when each position is related to the next position by a constant multiplier or "base."

A non-positional number is where each number is spereated by a mark of some sort so that you can read it and distinguish numbers. Roman numerals is a good example. to write 154 would be I.V.IV using periods to tell the numbers apart.

No comments: