Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2015-10-12 04:54:42 +0300
committermattab <matthieu.aubry@gmail.com>2015-10-12 04:54:42 +0300
commite51b9963c1d3870934059276f61377faae5d916e (patch)
tree78aa67fe61198489853546826c9d4e26daa44b6f /core
parent9ced7c48b4a710428bd7e818b8e919dd13e7944a (diff)
Fixes Call to undefined function bcdiv
Diffstat (limited to 'core')
-rw-r--r--core/NumberFormatter.php3
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];