mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -188,7 +188,7 @@ public class NumberChineseFormatter {
|
|||||||
Assert.checkBetween(amount, -999, 999, "Number support only: (-999 ~ 999)!");
|
Assert.checkBetween(amount, -999, 999, "Number support only: (-999 ~ 999)!");
|
||||||
|
|
||||||
final String chinese = thousandToChinese(amount, isUseTraditional);
|
final String chinese = thousandToChinese(amount, isUseTraditional);
|
||||||
if(amount < 20 && amount > 10){
|
if(amount < 20 && amount >= 10){
|
||||||
// "十一"而非"一十一"
|
// "十一"而非"一十一"
|
||||||
return chinese.substring(1);
|
return chinese.substring(1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user