base2ref.txt 486 B

123456789101112
  1. base-2 arithmetic: 0 1
  2. base-10 arithmetic: 0 1 2 3 4 5 6 7 8 9
  3. the binary number 10110.1 is converted to base-10 as follows:
  4. 10110.1 = 1*2^4 + 0*2^3 + 1*2^2 + 1*2^1 + 0*2^0 + 1*2^-1
  5. = 16 + 4 + 2 + 1/2
  6. = 22.5
  7. Similarly to base-10, the position of the digits relative to decimal point determine the
  8. value of the digit - if a digit is n places to the left of the decimal point, it has a
  9. value of 2^n-1, whilst if it is n places to the right, it has a value of 2^-n.