From 7c5d0ec00efe85fe66df574d39379197d54a5220 Mon Sep 17 00:00:00 2001 From: Doke Date: Sat, 30 Dec 2023 15:41:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E8=BD=AC=E6=8D=A2=E4=B8=BA=E8=8B=B1=E6=96=87=E6=97=B6=E7=BC=BA?= =?UTF-8?q?=E5=B0=91=20trillion=20=E5=8D=95=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 金额转换为英文时缺少 trillion 单位导致金额达到万亿时数组溢出错误 --- .../main/java/cn/hutool/core/convert/NumberWordFormatter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hutool-core/src/main/java/cn/hutool/core/convert/NumberWordFormatter.java b/hutool-core/src/main/java/cn/hutool/core/convert/NumberWordFormatter.java index e93978015..2047e52e3 100644 --- a/hutool-core/src/main/java/cn/hutool/core/convert/NumberWordFormatter.java +++ b/hutool-core/src/main/java/cn/hutool/core/convert/NumberWordFormatter.java @@ -19,7 +19,7 @@ public class NumberWordFormatter { "FIFTEEN", "SIXTEEN", "SEVENTEEN", "EIGHTEEN", "NINETEEN"}; private static final String[] NUMBER_TEN = new String[]{"TEN", "TWENTY", "THIRTY", "FORTY", "FIFTY", "SIXTY", "SEVENTY", "EIGHTY", "NINETY"}; - private static final String[] NUMBER_MORE = new String[]{"", "THOUSAND", "MILLION", "BILLION"}; + private static final String[] NUMBER_MORE = new String[]{"", "THOUSAND", "MILLION", "BILLION", "TRILLION"}; private static final String[] NUMBER_SUFFIX = new String[]{"k", "w", "", "m", "", "", "b", "", "", "t", "", "", "p", "", "", "e"};