Commit 41781278 authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Add note how to recognise failure in calculation of grade from percentage grade

parent d67ba207
Pipeline #815 passed with stages
in 12 minutes and 55 seconds
......@@ -629,7 +629,11 @@ pub fn save_submission<T: MedalConnection>(conn: &T, task_id: i32, session_token
/* Here, two variants of the grade are calculated. Which one is correct depends on how the percentage value is
* calculated in the task. Currently, grade_rounded is the correct one, but if that ever changes, the other code
* can just be used */
* can just be used.
* Switch to grade_truncated, when a user scores 98/99 but only gets 97/99 awarded.
* Switch to grade_rounded, when a user scores 5/7 but only gets 4/7 awarded.
/* Code for percentages calculated with integer rounding.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment