I don\'t want to do any rounding, straight up, \"39%\".
\"39%\"
So \"9.99%\" should become \"9%\".
\"9.99%\"
\"9%\"
string myPercentage = "48.8983%"; string newString = myPercentage.Replace("%",""); int newNumber = (int)Math.Truncate(Double.Parse(newString)); Console.WriteLine(newNumber + "%");
There maybe hundred ways of doing this and this is just one :)