Index of an integer number

For example if a user input 123. I want to able to c=first_number_of(123).
I want to break the number down to translate it to words (one hundred twenty three).Please help me the index part.
Thanks

Take your input as a string then you can reference each digit by index.
Topic archived. No new replies allowed.