Skip to content

Commit

Permalink
Rounding errors could lead to "Partially correct" for correct answers…
Browse files Browse the repository at this point in the history
  • Loading branch information
gustav_delius committed Feb 14, 2006
1 parent 1a0fe71 commit b0d1fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/locallib.php
Expand Up @@ -647,7 +647,7 @@ function print_question_grading_details(&$question, &$state, $quiz, $options) {
$grade->raw = round($state->last_graded->raw_grade, $quiz->decimalpoints);

echo '<div class="correctness ';
if ($grade->raw >= $grade->max) {
if ($grade->raw >= $grade->max/1.01) {
echo ' correct">';
print_string('correct', 'quiz');
} else if ($grade->raw > 0) {
Expand Down

0 comments on commit b0d1fa4

Please sign in to comment.