From cb68af8b899b6458f8faee0f92e48ba3ea0fb0f2 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Mon, 17 Sep 2007 02:15:51 +0000 Subject: [PATCH] removing extra number_format(), format_float() already calls number_format() --- grade/report/grader/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grade/report/grader/lib.php b/grade/report/grader/lib.php index 0eee1582170..210411b2faf 100644 --- a/grade/report/grader/lib.php +++ b/grade/report/grader/lib.php @@ -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);