diff options
Diffstat (limited to 'core/NumberFormatter.php')
-rw-r--r-- | core/NumberFormatter.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/NumberFormatter.php b/core/NumberFormatter.php index 4e2d376314..ad030400f4 100644 --- a/core/NumberFormatter.php +++ b/core/NumberFormatter.php @@ -229,7 +229,8 @@ class NumberFormatter extends Singleton // Ensure that the value is positive and has the right number of digits. $negative = $this->isNegative($value); $signMultiplier = $negative ? '-1' : '1'; - $value = bcdiv($value, $signMultiplier, $maximumFractionDigits); + $value = $value / $signMultiplier; + $value = round($value, $maximumFractionDigits); // Split the number into major and minor digits. $valueParts = explode('.', $value); $majorDigits = $valueParts[0]; |