diff --git a/plugins/CoreVisualizations/Visualizations/Cloud.php b/plugins/CoreVisualizations/Visualizations/Cloud.php index eb42ae0b634..80f6bfc8efe 100644 --- a/plugins/CoreVisualizations/Visualizations/Cloud.php +++ b/plugins/CoreVisualizations/Visualizations/Cloud.php @@ -9,6 +9,7 @@ namespace Piwik\Plugins\CoreVisualizations\Visualizations; use Piwik\Common; +use Piwik\Piwik; use Piwik\Plugin\Visualization; /** @@ -194,7 +195,7 @@ private function getPercentage($popularity, $maxValue) return 0; } - $percent = ($popularity / $maxValue) * 100; + $percent = Piwik::getQuotientSafe($popularity, $maxValue, 4) * 100; return $percent; }