]> git.mjollnir.org Git - moodle.git/commitdiff
removing extra number_format(), format_float() already calls number_format()
authortoyomoyo <toyomoyo>
Mon, 17 Sep 2007 02:15:51 +0000 (02:15 +0000)
committertoyomoyo <toyomoyo>
Mon, 17 Sep 2007 02:15:51 +0000 (02:15 +0000)
grade/report/grader/lib.php

index 0eee15821705ebbb0ed2fb23d37fbb1878b538c3..210411b2faf53d857f2bdbf275c9e00cbfa19b8c 100644 (file)
@@ -931,7 +931,7 @@ class grade_report_grader extends grade_report {
 
                     if ($displaytype == GRADE_REPORT_GRADE_DISPLAY_TYPE_PERCENTAGE) {
                         $gradeval = grade_to_percentage($rawvalue, $item->grademin, $item->grademax);
-                        $gradehtml = number_format(format_float($gradeval, $decimalpoints), $decimalpoints) . '%';
+                        $gradehtml = format_float($gradeval, $decimalpoints). '%';
                     } elseif ($displaytype == GRADE_REPORT_GRADE_DISPLAY_TYPE_LETTER) {
                         $letters = grade_report::get_grade_letters();
                         $gradehtml = grade_grade::get_letter($letters, $gradeval, $item->grademin, $item->grademax);