CNumberFormatter->formatCurrency() not handling negative numbers?

CNumberFormatter->formatCurrency() puts parentheses around returned result if a negative value is supplied for ‘value’ param:

echo Yii::app()->numberFormatter->formatCurrency(-32.04,'GBP');



Hard to say if this is really a bug or not, the problem is that the CLDR data for US english explicitly specifies that this is the correct format to use:

‘currencyFormat’ => ‘¤#,##0.00;(¤#,##0.00)’,

Since you’re in the UK, you could just switch the locale to en_gb