src/Money.php
public function formatForAccounting(): string
    {
        $amount = $this->getRoundedAmount();
        $negative = 0 > $amount;
        if ($negative) {
            $amount *= -1;
        }
        $amount = number_format($amount, Intl::getCurrencyBundle()->getFractionDigits($this->currency));
        return $negative ? '(' . $amount . ')' : $amount;
    }
public function formatForAccounting(): string
    {
        $amount = $this->getRoundedAmount();
        $negative = 0 > $amount;
        if ($negative) {
            $amount *= -1;
        }
        $amount = number_format($amount, Intl::getCurrencyBundle()->getFractionDigits($this->currency));
        return $negative ? '(' . $amount . ')' : $amount;
    }
Returns a rounded number without currency
If the number is negative, the currency is within parentheses