Skip to content

Commit

Permalink
allow reading double value with exp extension
Browse files Browse the repository at this point in the history
fix #695
  • Loading branch information
tonyqus committed May 2, 2022
1 parent a534937 commit 1da50c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openxml4Net/Util/XmlHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public static double ReadDouble(XmlAttribute attr)
else
{
double v;
if (double.TryParse(s, NumberStyles.Number, CultureInfo.InvariantCulture, out v))
if (double.TryParse(s, NumberStyles.Number|NumberStyles.Float| NumberStyles.AllowExponent, CultureInfo.InvariantCulture, out v))
{
return v;
}
Expand Down

0 comments on commit 1da50c2

Please sign in to comment.