|
@@ -409,7 +409,7 @@ namespace TEAMModelOS.Controllers.Analysis
|
|
|
}
|
|
|
foreach (int p in answerCount)
|
|
|
{
|
|
|
- var t = Math.Floor(Math.Round(decimal.Parse((p / peopleCount).ToString("0.000")), 2) * 100);
|
|
|
+ var t = Math.Round(p * 1.0 / peopleCount * 100,2);
|
|
|
persent.Add(t.ToString());
|
|
|
}
|
|
|
classdatas.Add(new KeyValuePair<string, List<string>>(c.id, persent));
|
|
@@ -434,7 +434,7 @@ namespace TEAMModelOS.Controllers.Analysis
|
|
|
}
|
|
|
foreach (int p in gradeAnswer)
|
|
|
{
|
|
|
- var t = Math.Floor(Math.Round(decimal.Parse((p / Qnum).ToString("0.000")), 2) * 100);
|
|
|
+ var t = Math.Round(p * 1.0 / Qnum * 100,2);
|
|
|
grasdepersent.Add(t.ToString());
|
|
|
}
|
|
|
for (int k = 0; k < e.paper.point.Count; k++)
|