* [refac feedback #10803] Adjust compute waterpolo percent to float.

This commit is contained in:
wangyidong
2025-11-26 10:59:07 +08:00
parent 29e31c94b7
commit 00e9f005f5
+1 -1
View File
@@ -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);