diff --git a/templates/HTML/SingleProblemGrader/grader.html.ep b/templates/HTML/SingleProblemGrader/grader.html.ep index bf5907a3e2..4a3282bea0 100644 --- a/templates/HTML/SingleProblemGrader/grader.html.ep +++ b/templates/HTML/SingleProblemGrader/grader.html.ep @@ -80,6 +80,11 @@ % } else { % $stepSize = int(($grader->{problem_value} - 1) / 100) + 1; % } + % # Round point score to the nearest $stepSize. + % param( + % 'grader-problem-points', + % wwRound(2, wwRound(0, $grader->{recorded_score} * $grader->{problem_value} / $stepSize) * $stepSize) + % );