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');
    }
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');
    }
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' ) ; }
Format field as real number with 2 digit precision.

@param string $field
Format field as real number with 2 digit precision .