Hi,
I need to find out in a certain digit appears in an int. (for instance the digit 2 appears in the int 582).
Does someone know some useful functions that can help me solve that problem. The only way I see to solve this is look at the length of the int and then by % getting all the digits. But it seems to me to complicated for such an easy assignment.
Any help is welcome. Thanks a lot.
Janssens
I need to find out in a certain digit appears in an int. (for instance the digit 2 appears in the int 582).
Does someone know some useful functions that can help me solve that problem. The only way I see to solve this is look at the length of the int and then by % getting all the digits. But it seems to me to complicated for such an easy assignment.
Any help is welcome. Thanks a lot.
Janssens