Merge branch 'MDL-53140-master' of git://github.com/rezaies/moodle
[moodle.git] / lib / questionlib.php
index 6d96f84..a089358 100644 (file)
@@ -806,7 +806,7 @@ function question_preview_url($questionid, $preferredbehaviour = null,
     }
 
     if (!is_null($maxmark)) {
-        $params['maxmark'] = $maxmark;
+        $params['maxmark'] = format_float($maxmark, strlen($maxmark), true, true);
     }
 
     if (!is_null($displayoptions)) {