mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
removing extra number_format(), format_float() already calls number_format()
This commit is contained in:
parent
1519cdeb39
commit
cb68af8b89
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user