File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sources/net.sf.j2s.java.core/src/javajs/util Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ public static String formatDecimal(double value, int decimalDigits) {
8585 value = -value ;
8686 int n ;
8787 if (decimalDigits < 0 ) {
88- decimalDigits = -1 - decimalDigits ;
88+ decimalDigits = -decimalDigits ;
8989 if (decimalDigits > formattingStrings .length )
9090 decimalDigits = formattingStrings .length ;
9191 if (value == 0 )
@@ -103,7 +103,7 @@ public static String formatDecimal(double value, int decimalDigits) {
103103 String s = ("" + d ).toUpperCase ();
104104 int i1 = s .indexOf ("E" );
105105 String sf ;
106- if (i1 < 0 ) {
106+ if (i1 < 0 ) {
107107 sf = "" + value ;
108108 } else {
109109 n = PT .parseInt (s .substring (i1 + (s .indexOf ("E+" ) == i1 ? 2 : 1 ))) + n ;
You can’t perform that action at this time.
0 commit comments