title: How to remove last character of a number in C#
body: <p>This is my string "codes 02 - UFL 1500"</p>
  
  <pre class="lang-cs prettyprint-override"><code>String SelCurItem;                      
  String GradeGSM;
  Int32 CalcLengthSelCurItem;
  Int32 CalcLengthGradeGSM;
  
  CalcLengthSelCurItem = SelCurItem.Length - 11; //this part gives me the first 8 characters back
  GradeGSM = SelCurItem.Substring(11, CalcLengthSelCurItem); // gives me "UFL 1500" BACK
  CalcLengthGradeGSM = GradeGSM.Length - GradeGSM.IndexOf(" ");
  Grade = GradeGSM.Substring(0, GradeGSM.IndexOf(" ")); // GIVES ME "UFL" back
  GSM = Convert.ToInt32(GradeGSM.Substring(GradeGSM.IndexOf(" "), CalcLengthGradeGSM)); // GIVES ME "1500"
  </code></pre>
  
  <p>Now i want to add another field named GSM2 and i want the output to give me back "150" it must drop the last character. How do i achieve this?</p>