src/Formatter/AbstractFormatter.php
protected function normalizeBytes($bytes)
    {
        $filteredBytes = filter_var($bytes, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION);
        list ($bytes, $part) = explode('.', $filteredBytes . '.0');
        if (bccomp($part, 0) == 1) {
            $bytes = bcadd($bytes, 1);
        }

        return $bytes;
    }
protected function normalizeBytes($bytes)
    {
        $filteredBytes = filter_var($bytes, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION);
        list ($bytes, $part) = explode('.', $filteredBytes . '.0');
        if (bccomp($part, 0) == 1) {
            $bytes = bcadd($bytes, 1);
        }

        return $bytes;
    }
Normalize bytes value

The resulting value is a string representation of the bytes value. This
is done by the BCMath library so we can work with very large integer
values.

@uses \bcadd()
@uses \bccomp()
@uses \filter_var()

@param  integer|float|string $bytes The bytes value.
@return string Returns the normalized value.