mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-25 03:01:21 +08:00
@@ -727,6 +727,7 @@ class Formatter extends Component
|
||||
$value = $this->normalizeNumericValue($value);
|
||||
if ($this->_intlLoaded) {
|
||||
$f = $this->createNumberFormatter(NumberFormatter::DECIMAL, null, $options, $textOptions);
|
||||
$f->setAttribute(NumberFormatter::FRACTION_DIGITS, 0);
|
||||
return $f->format($value, NumberFormatter::TYPE_INT64);
|
||||
} else {
|
||||
return number_format((int) $value, 0, $this->decimalSeparator, $this->thousandSeparator);
|
||||
|
||||
Reference in New Issue
Block a user