Skip to content

Commit bd7c92f

Browse files
committed
UnitParser 1.0.9.1.
1 parent 1143fea commit bd7c92f

4 files changed

Lines changed: 3 additions & 3 deletions

File tree

all_binaries/UnitParser.jar

-2.29 KB
Binary file not shown.
-51 Bytes
Binary file not shown.

all_code/Test/UnitParser.jar

-2.29 KB
Binary file not shown.

all_code/UnitParser/src_Internal/InternalUnitParser/CSharpAdaptation/TryParseMethods.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ public static TryParseOutput Double(String input)
1313
{
1414
output.DoubleVal = ParseCommon(input).doubleValue();
1515
Double val = new Double(output.DoubleVal);
16+
output.IsOK = true;
17+
1618
if (input != null && (input.contains("e") || !(val.isNaN() || val.isInfinite())))
1719
{
18-
output.IsOK = true;
19-
2020
String[] tempVar = CSharpOther.SplitTryCatch(input.toLowerCase(), "e");
2121
if (tempVar.length == 2)
2222
{
@@ -35,7 +35,7 @@ public static TryParseOutput Double(String input)
3535
}
3636
}
3737
}
38-
catch (Exception e) { }
38+
catch (Exception e) { output.IsOK = false; }
3939

4040
return output;
4141
}

0 commit comments

Comments
 (0)