in reply to Re: convert last digit in decimal
in thread convert last digit in decimal

thanks for your suggestion AR, I will try it. I was trying to get the length, and then determine the last character, but that was not working out.

Replies are listed 'Best First'.
Re^3: convert last digit in decimal
by AR (Friar) on Aug 10, 2011 at 20:57 UTC

    You could also chop and save the last character if you know that the format is always going to be the same. That's a bit simpler than a regex, but it presumes you know the format is constant.

      that's what I did :-)