mirror of
https://gitee.com/dromara/hutool.git
synced 2025-06-28 04:35:14 +08:00
修复Money
中金额分配的问题bug(issue#IC9Y35@Gitee)
This commit is contained in:
parent
95ee9a0cb5
commit
5f5ead1129
@ -12,6 +12,7 @@
|
||||
* 【core 】 修复`NumberUtil`isNumber方法以L结尾没有小数点判断问题(issue#3938@Github)
|
||||
* 【core 】 修复`CharsequenceUtil`toLowerCase方法拼写错误(issue#3941@Github)
|
||||
* 【core 】 修复`UUID`equals的问题,改为final类(issue#3948@Github)
|
||||
* 【core 】 修复`Money`中金额分配的问题bug(issue#IC9Y35@Gitee)
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
# 5.8.38(2025-05-13)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user