public function getFormattedValue(AbstractColumn $column)
    {
        $row = $this->getRowData();
        $value = $row[$column->getUniqueId()];

        if ('' == $value) {
            return $value;
        }

        $index = 0;
        while ($value >= 1024 && $index < count(self::$prefixes)) {
            $value = $value / 1024;
            ++$index;
        }

        return sprintf('%1.2f %sB', $value, self::$prefixes[$index]);
    }
public function getFormattedValue(AbstractColumn $column)
    {
        $row = $this->getRowData();
        $value = $row[$column->getUniqueId()];

        if ('' == $value) {
            return $value;
        }

        $index = 0;
        while ($value >= 1024 && $index < count(self::$prefixes)) {
            $value = $value / 1024;
            ++$index;
        }

        return sprintf('%1.2f %sB', $value, self::$prefixes[$index]);
    }
public function getFormattedValue ( AbstractColumn $ column ) { $ row = $ this -> getRowData ( ) ; $ value = $ row [ $ column -> getUniqueId ( ) ] ; if ( '' == $ value ) { return $ value ; } $ index = 0 ; while ( $ value >= 1024 && $ index < count ( self :: $ prefixes ) ) { $ value = $ value / 1024 ; ++ $ index ; } return sprintf ( '%1.2f %sB' , $ value , self :: $ prefixes [ $ index ] ) ; }
The value should be in bytes.

@see \ZfcDatagrid\Column\Formatter\AbstractFormatter::getFormattedValue()
The value should be in bytes .