Splitting Variables

murtaza_hh

New Member
Hi, I am trying to split up some variables, what i mean by that is to split up each digit of a variable into 2/3 other variables.for example:
b1=123
then once split
b2=1
b3=2
b4=3
The reason for this is then i would try to convert each variable into its own 5x7 5 character ascii.
Thanks
 

womai

Senior Member
Shorter source code (and maybe shorter compiled code as well):

b2 = b1 // 10
b3 = b1 / 10 // 10
b4 = b1 / 100

Note: I haven't tested that code!

Wolfgang
 
Top