Re: list of bits to string
- To: mathgroup at smc.vnet.net
- Subject: [mg28705] Re: [mg28688] list of bits to string
- From: Adalbert Hanssen <hanssen at zeiss.de>
- Date: Thu, 10 May 2001 07:54:50 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
> 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? Hi Murray, try this Apply[StringJoin,ToString/@ {0,1,0,0,1,0,0,1} ] "01001001" regards Adalbert