Friday, February 23, 2007

encoding numbers

positional number systems base the value of a digit on its position. this changes with the base that you use, for example in binary base2 110 does not equal the one hundered ten that it does in the base ten that we use regualarlly.


The easiest way to convert binary to decimal that we talked about in class involved using the 2 to increasing powersand then adding the numbers that correspond to ones in the binary number.


2^8 / 2^7 / 2^6 / 2^5 / 2^4 / 2^3 / 2^2 / 2^1 / 2^0



1 / 1 / 0 / 0 / 1 / 0 / 1 / 0 / 1


256 + 128 + 16 + 4 + 1 = 405

























num.quotientremain.binary
52926411
264132001
132660001
663300001
3316110001
1680010001
8400010001
42000010001
21o000010001
1011000010001

No comments: