Commit 20c545bf authored by hujun's avatar hujun

fmod 返回被除数(x)除以除数(y)所得的浮点数余数

parent cbccfdcf
...@@ -221,7 +221,7 @@ class RankingListService ...@@ -221,7 +221,7 @@ class RankingListService
//分组 //分组
$total = count($resultArr); $total = count($resultArr);
$total_page = floor($total / $crewNum_); $total_page = floor($total / $crewNum_);
$residue = $total % $crewNum_; $residue = fmod($total , $crewNum_);
$full = $total_page * ($crewNumMax_ - $crewNum_); $full = $total_page * ($crewNumMax_ - $crewNum_);
$x = $crewNum_; $x = $crewNum_;
$y = $total_page; $y = $total_page;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment