protected void txtPresent_TextChanged(object sender, EventArgs e) { decimal conclass, pres, abs; decimal avg; conclass = Convert.ToDecimal(txtCondClass.Text.Trim()); pres = Convert.ToDecimal(txtPresent.Text.Trim()); abs = conclass - pres; txtAbs.Text = abs.ToString(); avg = pres * 100 / conclass; txtAvg.Text = avg.ToString(); }
txtAvg.Text = Math.Round(avg.ToString(), 2);
Math.Round([Value],2)
avg = Math.Round((pres * 100 / conclass),2);
txtAvg.Text = avg.ToString("0.00");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)