show certain value?

How do i show the second last number/letter of a string/int?
for example take it we have the number 888888818, how do i just show the number 1?
value%10 will give you last digit. Value%100 will give you last two digits and you would have to subtract the result of value%10 from it and then divide it by 10 to get the second last digit.

http://recurseit.blogspot.com
Topic archived. No new replies allowed.