A simple question about digits

Jerz95

New member
Joined
Oct 17, 2007
Messages
1
Programming Experience
Beginner
Hello, Im currently using Visual Studio 2005, and have a very simple question.

How would I pick out the second to last digit in an integer?
For example, say I had the number 12345, I would want the '4'.

This number would constantly be changing however.

Thanks
 
Convert it to a string with its ToString method, use the Substring method of the string to get that part of it.
 
Back
Top