original_string: private function activity_format_grade($grade) {
          if (is_null($grade)) {
              return get_string('notyetgraded', 'block_activity_results');
          }
          return format_float($grade, $this->config->decimalpoints);
      }
code: private function activity_format_grade($grade) {
          if (is_null($grade)) {
              return get_string('notyetgraded', 'block_activity_results');
          }
          return format_float($grade, $this->config->decimalpoints);
      }
code_tokens: private function activity_format_grade ( $ grade ) { if ( is_null ( $ grade ) ) { return get_string ( 'notyetgraded' , 'block_activity_results' ) ; } return format_float ( $ grade , $ this -> config -> decimalpoints ) ; }
docstring: Formats the grade to the specified decimal points
  @param float $grade
  @return string
docstring_tokens: Formats the grade to the specified decimal points