mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复Money
中金额分配的问题bug(issue#IC9Y35@Gitee)
This commit is contained in:
@@ -726,7 +726,7 @@ public class Money implements Serializable, Comparable<Money> {
|
||||
Money lowResult = newMoneyWithSameCurrency(cent / targets);
|
||||
Money highResult = newMoneyWithSameCurrency(lowResult.cent + 1);
|
||||
|
||||
int remainder = (int) cent % targets;
|
||||
int remainder = (int) (cent % targets);
|
||||
|
||||
for (int i = 0; i < remainder; i++) {
|
||||
results[i] = highResult;
|
||||
|
Reference in New Issue
Block a user