original_string: public function format_float($field)
      {
          $precision = 2;
          $m = (float) $this->current_row[$field];
          $this->current_row[$field] =
              is_null($this->current_row[$field])
                  ? '-'
                  : number_format($m, $precision);
          $this->setTDParam($field, 'align', 'right');
          $this->setTDParam($field, 'style/white-space', 'nowrap');
      }
code: public function format_float($field)
      {
          $precision = 2;
          $m = (float) $this->current_row[$field];
          $this->current_row[$field] =
              is_null($this->current_row[$field])
                  ? '-'
                  : number_format($m, $precision);
          $this->setTDParam($field, 'align', 'right');
          $this->setTDParam($field, 'style/white-space', 'nowrap');
      }
code_tokens: public function format_float ( $ field ) { $ precision = 2 ; $ m = ( float ) $ this -> current_row [ $ field ] ; $ this -> current_row [ $ field ] = is_null ( $ this -> current_row [ $ field ] ) ? '-' : number_format ( $ m , $ precision ) ; $ this -> setTDParam ( $ field , 'align' , 'right' ) ; $ this -> setTDParam ( $ field , 'style/white-space' , 'nowrap' ) ; }
docstring: Format field as real number with 2 digit precision.
  
  @param string $field
docstring_tokens: Format field as real number with 2 digit precision .