Commit 2bca2a52 authored by Marc Gravell's avatar Marc Gravell

Merge pull request #288 from thepirat000/patch-1

Handle "inf" as well as "+inf"
parents 8e6c8c0d e6bcaa4c
......@@ -144,7 +144,7 @@ internal static bool TryParseDouble(string s, out double value)
return true;
}
// need to handle these
if(string.Equals("+inf", s, StringComparison.OrdinalIgnoreCase))
if(string.Equals("+inf", s, StringComparison.OrdinalIgnoreCase) || string.Equals("inf", s, StringComparison.OrdinalIgnoreCase))
{
value = double.PositiveInfinity;
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment