We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb30534 commit 079caefCopy full SHA for 079caef
core-parent/core/src/main/java/icu/easyj/core/util/NumberUtils.java
@@ -65,7 +65,12 @@ public static String convertScientificToNormal(String scientificNumberStr) {
65
}
66
67
public static String doubleToString(Double d) {
68
- return convertScientificToNormal(d.toString());
+ String doubleStr = d.toString();
69
+ if (doubleStr.contains("E")) {
70
+ return convertScientificToNormal(doubleStr);
71
+ } else {
72
+ return doubleStr;
73
+ }
74
75
76
0 commit comments