Re: list of bits to string
- To: mathgroup at smc.vnet.net
- Subject: [mg28693] Re: [mg28688] list of bits to string
- From: "Helge Andersson" <helgea at inoc.chalmers.se>
- Date: Thu, 10 May 2001 07:54:40 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hello Murray I guess this is what you are looking for: In[7]:= li={0,1,1,1,0,1,0,0,1}; result=ToString[FromDigits[li]] String===Head[result] Out[8]= 11101001 Out[9]= True Helge Andersson Chalmers University of Technology Sweden Murray Eisenberg wrote 9th of May 2001 10:20 I have a list consisting of binary digits, of a given length, e.g., {0, 1, 1, 0, 1}. I wish to convert this to a _string_ consisting of those digits: "01101". How can this be done? -- Murray Eisenberg Internet: murray at math.umass.edu Mathematics & Statistics Dept. Voice: 413-545-2859 (W) University of Massachusetts 413-549-1020 (H) Amherst, MA 01003 Fax: 413-545-1801