[O] Round weight to 2 digits
This commit is contained in:
+1
-1
@@ -256,7 +256,7 @@ export default class Course
|
|||||||
? this.grading.weightingMap[type] : scoreMax / totalScoreMax;
|
? this.grading.weightingMap[type] : scoreMax / totalScoreMax;
|
||||||
|
|
||||||
// Return
|
// Return
|
||||||
return {name: type, id: typeAssignments[0].typeId, weight: weight,
|
return {name: type, id: typeAssignments[0].typeId, weight: +weight.toFixed(2),
|
||||||
scoreMax: scoreMax, score: score, percent: +(score / scoreMax * 100).toFixed(2)}
|
scoreMax: scoreMax, score: score, percent: +(score / scoreMax * 100).toFixed(2)}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user