Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bwinf
medal
Commits
41781278
Commit
41781278
authored
Sep 10, 2020
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/core.rs
View file @
41781278
...
...
@@ -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.
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment