COM1100 -- Winter2000 -- Yuhong Yin
10
Binary number to decimal number
n Use binary expression:
ndn * 2 n + dn-1 * 2 n-1 + …+ d1 * 21 + d0 * 2 0 
nwhere, dj  is one of the two binary digits  0 ~ 1
       2i is the power of 2 of each digit dj that defines           its positional significance, or simply the power               of that digit.
n For example,
n (110010) = 1 * 25 + 1 * 24 + 1 * 21
  = 32 + 16 + 2  = 50