diff --git a/VectoCommon/VectoCommon/Utils/StringExtensionMethods.cs b/VectoCommon/VectoCommon/Utils/StringExtensionMethods.cs index 6a91bd48eca9531cc55a55290826a18ddb4c3812..c3018da04a58de6ce89830bc490d12f5c5a9868f 100644 --- a/VectoCommon/VectoCommon/Utils/StringExtensionMethods.cs +++ b/VectoCommon/VectoCommon/Utils/StringExtensionMethods.cs @@ -54,7 +54,7 @@ namespace TUGraz.VectoCommon.Utils 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.AllowDecimalPoint, NumberFormatInfo.InvariantInfo, out var retVal); if (success) { return retVal; }