string vbn = chrs1 + "." + chm1; double sh = Convert.ToDouble(vbn); string chm1str = chm1.ToString(); string chmstr = chm.ToString(); chmstr = chmstr.Substring(Math.Max(0, chmstr.Length - 1)); chm1str = chm1str.Substring(Math.Max(0, chm1str.Length - 1)); string s = chrs1 + "." + chm1; totaltimeptod = Decimal.Round(Convert.ToDecimal(s), 2, MidpointRounding.AwayFromZero); totaltime = Convert.ToDecimal(chrs + "." + chm);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)