src/Formatter/AbstractFormatter.php
protected function formatNumber($float, $suffix, $precision = null)
    {
        if ($precision === null) {
            $precision = $this->precision;
        }
        $precision = $this->normalizePrecision($precision);

        return sprintf("%.{$precision}f%s", $float, $suffix);
    }
protected function formatNumber($float, $suffix, $precision = null)
    {
        if ($precision === null) {
            $precision = $this->precision;
        }
        $precision = $this->normalizePrecision($precision);

        return sprintf("%.{$precision}f%s", $float, $suffix);
    }
Format a float value with given suffix

@uses AbstractFormatter::normalizePrecision()

@param  integer|float $float The number to format.
@param  string $suffix The suffix to attach.
@param  integer $precision The number of significant digits to include.
@return string Returns the formatted string.