[QUOTE=Raiper341] yea it is! :) ty but how i create from 180 alone digit 8 or 1 or 0? is this possible?[/QUOTE] Of course, it is :)
Convert the number to a string, then loop through the length of the string and extract one letter each time.
number to string conversion: string = str(number)
getting the length of a string: length = len(string)
get a substring at any position: substring = mid(string, start, length)
looping: For (name, start, end), use 1 for start and len(string) for end
within the loop use mid(string, loopindex, 1) to get one letter at that position
To convert a string to a number, use int(string) again.
Here is a very simple cap: numbertodigits.cap
Have a look at the Construct wiki, explaining all of the expressions: System expressionstulamide2012-03-29 20:27:09