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