Link to home
Start Free TrialLog in
Avatar of JakeyCakes
JakeyCakes

asked on

Remove penultimate character in a string

Hi

As part of project I am working on I have to remove the penultimate digit from a six digit number (which I will not know). For example ,the number 922001 needs to become 92201.  It would seem to me that the best way to achieve this is by using string builder, but I can't get my string builder code achieve my goal.

Can anyone help?
ASKER CERTIFIED SOLUTION
Avatar of DelTreme
DelTreme

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JakeyCakes
JakeyCakes

ASKER

DelTreme,

You genius! It does what I want perfectly, and it seems so much more efficient than my idea I had after posting this question (I thought about using the Remove function in the stringbuilder class). The points are deservedly yours.