I’m breaking my head to figure out how I can write a routine that masks individual numbers from a integer. For example, if I have a integer with the number: 1234 (variable length) I want a loop that returns:
1
2
3
4
Until all the numbers are done. One thing that came in mind is to convert the value to a string parse through the individual characters and convert that back to a integer. But maybe there’s an less processer hungry function to accomplish this (like the bitmasking for binary numbers) or has someone another idea?
Integer division... 1234/1000 = 1
remainder of 1234/1000 = 234 (U can use % to get remainder)
again divide remainder by 100 to get 2 etc..
Hope u get the idea..
I get the idea thanks!