removing extra number_format(), format_float() already calls number_format()

This commit is contained in:
toyomoyo 2007-09-17 02:15:51 +00:00
parent 1519cdeb39
commit cb68af8b89

View 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);