original_string: public function col_prevgrade(\stdClass $history) {
          if (!empty($this->gradeitems[$history->itemid])) {
              $decimalpoints = $this->gradeitems[$history->itemid]->get_decimals();
          } else {
              $decimalpoints = $this->defaultdecimalpoints;
          }
  
          return format_float($history->prevgrade, $decimalpoints);
      }
code: public function col_prevgrade(\stdClass $history) {
          if (!empty($this->gradeitems[$history->itemid])) {
              $decimalpoints = $this->gradeitems[$history->itemid]->get_decimals();
          } else {
              $decimalpoints = $this->defaultdecimalpoints;
          }
  
          return format_float($history->prevgrade, $decimalpoints);
      }
code_tokens: public function col_prevgrade ( \ stdClass $ history ) { if ( ! empty ( $ this -> gradeitems [ $ history -> itemid ] ) ) { $ decimalpoints = $ this -> gradeitems [ $ history -> itemid ] -> get_decimals ( ) ; } else { $ decimalpoints = $ this -> defaultdecimalpoints ; } return format_float ( $ history -> prevgrade , $ decimalpoints ) ; }
docstring: Method to display the previous grade.
  
  @param \stdClass $history an entry of history record.
  
  @return string HTML to display
docstring_tokens: Method to display the previous grade .