* [refac feedback #10803] Adjust compute waterpolo percent to float.
This commit is contained in:
+1
-1
@@ -635,7 +635,7 @@ class biModel extends model
|
||||
$molecule = $this->dao->query($moleculeSQL)->fetch();
|
||||
$denominator = $this->dao->query($denominatorSQL)->fetch();
|
||||
|
||||
$percent = $denominator->count ? round((int)$molecule->count / (int)$denominator->count, 4) : 0;
|
||||
$percent = $denominator->count ? round((float)$molecule->count / (float)$denominator->count, 4) : 0;
|
||||
|
||||
$series = array(array('type' => 'liquidFill', 'data' => array($percent), 'color' => array('#2e7fff'), 'outline' => array('show' => false), 'label' => array('fontSize' => 26)));
|
||||
$tooltip = array('show' => true);
|
||||
|
||||
Reference in New Issue
Block a user