public function format($decimals = 2, $decPoint = '.', $thousandSep = ',')
    {
        return number_format($this->value, $decimals, $decPoint, $thousandSep);
    }
public function format($decimals = 2, $decPoint = '.', $thousandSep = ',')
    {
        return number_format($this->value, $decimals, $decPoint, $thousandSep);
    }
public function format ( $ decimals = 2 , $ decPoint = '.' , $ thousandSep = ',' ) { return number_format ( $ this -> value , $ decimals , $ decPoint , $ thousandSep ) ; }
Formats this quantity.
@param int $decimals number of decimals (default to 2)
@param string $decPoint decimal symbol (defaults to '.')
@param string $thousandSep thousand separator (defaults to ',')
@return string formatted quantity
Formats this quantity .