Re: New Thread Single items to number for Edit "Box" Solved

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu