Skip to content

Commit

Permalink
MDL-82120 gradepenalty_duedate: Update table float formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Fragonite authored and Nathan Nguyen committed Aug 29, 2024
1 parent 8a727bb commit 0bc4f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grade/penalty/duedate/classes/table/penalty_rule_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,6 @@ public function col_overdueby($row) {
* @param object $row row object.
*/
public function col_penalty($row) {
return get_string('percents', 'moodle', format_float($row->penalty));
return get_string('percents', 'moodle', format_float($row->penalty, -1));
}
}

0 comments on commit 0bc4f45

Please sign in to comment.