|
@@ -282,8 +282,9 @@ namespace TEAMModelOS.Controllers.Analysis
|
|
|
student = new StudentAys() { id = stuid };
|
|
|
students.Add(student);
|
|
|
}
|
|
|
- var score = examResult.studentScores[index].Sum();
|
|
|
+ var score = Math.Round(examResult.studentScores[index].Sum(),2);
|
|
|
student.total += score;
|
|
|
+ student.total = Math.Round(student.total, 2);
|
|
|
StuSubjectTotals.Add(score);
|
|
|
if (student.subjects.Select(x => x.id).Contains(examResult.subjectId))
|
|
|
{
|
|
@@ -943,7 +944,7 @@ namespace TEAMModelOS.Controllers.Analysis
|
|
|
sta[i].ToString(),
|
|
|
pass[i].ToString(),
|
|
|
i + 1 + "",
|
|
|
- e.studentScores[i].Sum().ToString()
|
|
|
+ Math.Round(e.studentScores[i].Sum(),2).ToString()
|
|
|
};
|
|
|
int right = 0;
|
|
|
int wrong = 0;
|