Yii::app()->numberFormatter->formatDecimal(12345.678)

12345.678 will be format as “12,345.68” in en locale
12345.678 will be format as “12.345,68” in vi locale

Di View

echo CHtml::encode(Yii::app()->numberFormatter->formatDecimal($data->tax_rate));

Di CDetailView

‘value’=>Yii::app()->numberFormatter->formatDecimal($model->currency_sales_limit),

Di CGridView

‘value’=>’Yii::app()->numberFormatter->formatDecimal($data->tax_rate);’,

 

Sumber : https://github.com/yiisoft/yii/issues/723