How to Remove the last char of String in C#? -
please read , tell me question duplicate. have read questions in stack on flow remove last char string mine different. please attention have numeric string, may "124322" or "1231.232" or "132123.00". want remove last char of string (what ever is). want if string "99234" became "9923". length of string variable. it's not constant. can not use string. remove or trim or them(i think). please if there way can use it(less code string.remove) or this, i'm interest. me please. thank every one
yourstring = yourstring.remove(yourstring.length - 1);
Comments
Post a Comment