Skip to content

Commit 04f51c6

Browse files
committed
fixes decimal formatter
1 parent eb7cbf1 commit 04f51c6

File tree

1 file changed

+4
-0
lines changed
  • sources/net.sf.j2s.java.core/src/javajs/util

1 file changed

+4
-0
lines changed

sources/net.sf.j2s.java.core/src/javajs/util/PT.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,10 @@ private static String formatString(String strFormat, String key, String strT,
11551155
if ((ch = strFormat.charAt(ich)) >= '0' && ch <= '9') {
11561156
precision = ch - '0';
11571157
++ich;
1158+
if ((ch = strFormat.charAt(ich)) >= '0' && ch <= '9') {
1159+
precision = 10*precision + (ch - '0');
1160+
++ich;
1161+
}
11581162
}
11591163
if (isExponential)
11601164
precision = -precision;

0 commit comments

Comments
 (0)