public function col_finalgrade(\stdClass $history) {
        if (!empty($this->gradeitems[$history->itemid])) {
            $decimalpoints = $this->gradeitems[$history->itemid]->get_decimals();
        } else {
            $decimalpoints = $this->defaultdecimalpoints;
        }

        return format_float($history->finalgrade, $decimalpoints);
    }
public function col_finalgrade(\stdClass $history) {
        if (!empty($this->gradeitems[$history->itemid])) {
            $decimalpoints = $this->gradeitems[$history->itemid]->get_decimals();
        } else {
            $decimalpoints = $this->defaultdecimalpoints;
        }

        return format_float($history->finalgrade, $decimalpoints);
    }
public function col_finalgrade ( \ stdClass $ history ) { if ( ! empty ( $ this -> gradeitems [ $ history -> itemid ] ) ) { $ decimalpoints = $ this -> gradeitems [ $ history -> itemid ] -> get_decimals ( ) ; } else { $ decimalpoints = $ this -> defaultdecimalpoints ; } return format_float ( $ history -> finalgrade , $ decimalpoints ) ; }
Method to display the final grade.

@param \stdClass $history an entry of history record.

@return string HTML to display
Method to display the final grade .