Skip to content
2 changes: 1 addition & 1 deletion src/Computer.V2.Lib/Functions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private static int HighestPow(ref string expression)
var tmpStr = Regex.Match(matches[i].Value, @"((?<=\^)((\-)?\d+([\.]\d+)?))").Value;
//throws format error if the number is not whole and positive.
if (tmpStr == "") continue;
var tmp = int.Parse(tmpStr);
var tmp int.Parse(tmpStr);
Comment thread
ktshikotshi marked this conversation as resolved.
Outdated
if (tmp < 0)
throw new FormatException();
if (tmp > pow)
Expand Down
Loading