Skip to content

Commit ad694b4

Browse files
committed
updated rounding
1 parent 0498ee5 commit ad694b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/learning-area/quiz/content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
if ( $quiz_attempt ) {
3737
$earned_marks = (float) $quiz_attempt->earned_marks;
3838
$total = (float) $total_marks;
39-
$earned_marks = round( ( $earned_marks / $total_marks ) * 100, 2 );
39+
$earned_marks = round( ( $earned_marks / $total_marks ) * 100 );
4040
}
4141
$limit_attempts = (int) $quiz_options['limit_attempts_allowed'] ?? 0;
4242
$allowed_attempts = $limit_attempts ? $quiz_options['attempts_allowed'] ?? '' : '1';

0 commit comments

Comments
 (0)