Command: bits_to_int
  
Syntax: 
  include machine.e
  a = bits_to_int(s)
  
Description: 
  Convert a sequence of binary 1's and 0's into a positive
  number. The least-significant bit is s[1].
  
Comments: 
  If you print s the bits will appear in "reverse" order, but
  it is convenient to have increasing subscripts access bits of 
  increasing significance.
  
Example: 
     a = bits_to_int({1,1,1,0,1})
       -- a is 23 (binary 10111)
 
See Also: 
  int_to_bits, and/or/not of sequences in refman.doc
  
