original_string: public function real_grade_value($value, $max) {
          $localized = true;
          if (is_null($value) or $value === '') {
              return null;
          } elseif ($max == 0) {
              return 0;
          } else {
              return format_float($max * $value / 100, $this->gradedecimals, $localized);
          }
      }
code: public function real_grade_value($value, $max) {
          $localized = true;
          if (is_null($value) or $value === '') {
              return null;
          } elseif ($max == 0) {
              return 0;
          } else {
              return format_float($max * $value / 100, $this->gradedecimals, $localized);
          }
      }
code_tokens: public function real_grade_value ( $ value , $ max ) { $ localized = true ; if ( is_null ( $ value ) or $ value === '' ) { return null ; } elseif ( $ max == 0 ) { return 0 ; } else { return format_float ( $ max * $ value / 100 , $ this -> gradedecimals , $ localized ) ; } }
docstring: Calculates the real value of a grade
  
  @param float $value percentual value from 0 to 100
  @param float $max   the maximal grade
  @return string
docstring_tokens: Calculates the real value of a grade