How to get a specific digit from an integer variable?

It’s this:

but you may need an array boundary check to keep it safe; like this perhaps:

And ensure you fetch an absolute value, getting index [-3] from an array is as bad as dividing by 0…

What I want to do is just get the second digit of an integer variable ignoring the number of digits and the size of the value, it will always take the second digit as seen in the photo. How to do this, I have not found a parameter to access the character.