Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 3f058995 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

correct error in refactoring of ToDouble extension method (use . as decimal separator)

parent a4aa44cc
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ namespace TUGraz.VectoCommon.Utils ...@@ -54,7 +54,7 @@ namespace TUGraz.VectoCommon.Utils
throw new FormatException("Cannot convert an empty string to a number."); throw new FormatException("Cannot convert an empty string to a number.");
} }
var success = double.TryParse(self, out var retVal); var success = double.TryParse(self, NumberStyles.Float, CultureInfo.InvariantCulture, out var retVal);
if (success) { if (success) {
return retVal; return retVal;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment