Re: New Thread Single items to number for Edit "Box" Solved
- Posted by Lnettnay Feb 06, 2011
- 3009 views
Hi Selgor,
I'm sorry to tell you that you managed to get your conversion backwards again. You need to use
seq = prepend(seq, remainder(n1, 2)) -- or seq = remainder(n1, 2) & seq
Also the 3 lines to convert the sequence of bits to a decimal number are really unnecessary. The two lines
seq += 48 setText(EditText2, sprintf("%s", {seq})) --will convert the binary digits 0 and 1 to their ASCII eqivalent -- '0' and '1' and place them in the EditText box for you.
Lonny