1.System.Globalization.NumberFormatInfo provider = new System.Globalization.NumberFormatInfo();

provider.NumberDecimalDigits = 1;

2. 计算应得分数,并按1位小数输出s

((TableCell)item.FindControl("averageGrade")).Text = (40 * (Convert.ToDouble(((TextBox)dltData.Items[item.ItemIndex].FindControl("TBoxKHF")).Text)/sumGrade*dltData.Items.Count)).ToString("F1");

相关文章:

  • 2021-07-26
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2021-10-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2021-10-31
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案