mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix bug
This commit is contained in:
@@ -2114,7 +2114,7 @@ public class NumberUtil {
|
||||
*/
|
||||
public static int partValue(int total, int partCount, boolean isPlusOneWhenHasRem) {
|
||||
int partValue = total / partCount;
|
||||
if (isPlusOneWhenHasRem && total % partCount == 0) {
|
||||
if (isPlusOneWhenHasRem && total % partCount > 0) {
|
||||
partValue++;
|
||||
}
|
||||
return partValue;
|
||||
|
Reference in New Issue
Block a user