Skip to content

Commit e2097fc

Browse files
committed
use niceNumber on the displayed pass percentage
fixes #1138
1 parent b0bb5ca commit e2097fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

themes/default/files/scripts/exam-display.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ Numbas.queueScript('exam-display',['display-util', 'display-base','math','util',
245245
* @member {observable|string} percentPass
246246
* @memberof Numbas.display.ExamDisplay
247247
*/
248-
this.percentPass = Knockout.observable(e.settings.percentPass*100+'%');
248+
this.percentPass = Knockout.observable(Numbas.math.niceNumber(e.settings.percentPass*100)+'%');
249249
/** String displaying the student's current score, and the total marks available, if allowed.
250250
*
251251
* @member {observable|string} examScoreDisplay

0 commit comments

Comments
 (0)