public function format($decimals = 2, $decimalDelimiter = '.', $thousandDelimiter = ' ')
    {
        return new String(
            number_format(
                (float) $this->value,
                $this->getIntegerable($decimals),
                $this->getStringable($decimalDelimiter),
                $this->getStringable($thousandDelimiter)
            )
        );
    }
public function format($decimals = 2, $decimalDelimiter = '.', $thousandDelimiter = ' ')
    {
        return new String(
            number_format(
                (float) $this->value,
                $this->getIntegerable($decimals),
                $this->getStringable($decimalDelimiter),
                $this->getStringable($thousandDelimiter)
            )
        );
    }
public function format ( $ decimals = 2 , $ decimalDelimiter = '.' , $ thousandDelimiter = ' ' ) { return new String ( number_format ( ( float ) $ this -> value , $ this -> getIntegerable ( $ decimals ) , $ this -> getStringable ( $ decimalDelimiter ) , $ this -> getStringable ( $ thousandDelimiter ) ) ) ; }
Format a number with grouped thousands and return String.

@param int|IntegerContract $decimals
@param string|StringContract $decimalDelimiter
@param string|StringContract $thousandDelimiter

@return \im\Primitive\Float\Float
Format a number with grouped thousands and return String .