mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-27 04:10:30 +08:00
fixes formatter doing one division too much, fixes #4427
This commit is contained in:
committed by
Alexander Makarov
parent
f3520187d6
commit
46b553f012
@@ -461,7 +461,7 @@ class Formatter extends Component
|
||||
|
||||
$value = $value / $this->sizeFormat['base'];
|
||||
$position++;
|
||||
} while ($position < 6);
|
||||
} while ($position < 5);
|
||||
|
||||
$value = round($value, $this->sizeFormat['decimals']);
|
||||
$formattedValue = isset($this->sizeFormat['decimalSeparator']) ? str_replace('.', $this->sizeFormat['decimalSeparator'], $value) : $value;
|
||||
|
||||
Reference in New Issue
Block a user