We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0498ee5 commit ad694b4Copy full SHA for ad694b4
1 file changed
templates/learning-area/quiz/content.php
@@ -36,7 +36,7 @@
36
if ( $quiz_attempt ) {
37
$earned_marks = (float) $quiz_attempt->earned_marks;
38
$total = (float) $total_marks;
39
- $earned_marks = round( ( $earned_marks / $total_marks ) * 100, 2 );
+ $earned_marks = round( ( $earned_marks / $total_marks ) * 100 );
40
}
41
$limit_attempts = (int) $quiz_options['limit_attempts_allowed'] ?? 0;
42
$allowed_attempts = $limit_attempts ? $quiz_options['attempts_allowed'] ?? '' : '1';
0 commit comments