diff --git a/VectoCore/VectoCore/OutputData/ModalDataContainer.cs b/VectoCore/VectoCore/OutputData/ModalDataContainer.cs index c73b01af3dddf8a6fc90f3c53d8538d8b935269d..8b746b03f8be6c10fb85e1211603a3cef06ac0e3 100644 --- a/VectoCore/VectoCore/OutputData/ModalDataContainer.cs +++ b/VectoCore/VectoCore/OutputData/ModalDataContainer.cs @@ -32,6 +32,7 @@ using System; using System.Collections.Generic; using System.Data; +using System.Globalization; using System.Linq; using System.Runtime.CompilerServices; using TUGraz.VectoCommon.Models; @@ -229,7 +230,11 @@ namespace TUGraz.VectoCore.OutputData _additionalColumns.Add(fieldName); Data.Columns.Add(fieldName); } - CurrentRow[fieldName] = value; + if (value is double) { + CurrentRow[fieldName] = string.Format(CultureInfo.InvariantCulture, "{0}", value); + } else { + CurrentRow[fieldName] = value; + } } public Dictionary<string, DataColumn> Auxiliaries { get; set; } diff --git a/VectoCore/VectoCoreTest/Integration/DriverStrategy/CoastingTests.cs b/VectoCore/VectoCoreTest/Integration/DriverStrategy/CoastingTests.cs index f6521af289d2caa0d9922d959ce9056041e31dfe..88f4cd6e0a9dac1ecc76c42bbda9297ea7dcbe7d 100644 --- a/VectoCore/VectoCoreTest/Integration/DriverStrategy/CoastingTests.cs +++ b/VectoCore/VectoCoreTest/Integration/DriverStrategy/CoastingTests.cs @@ -1,4 +1,5 @@ using System; +using System.Globalization; using Microsoft.VisualStudio.TestTools.UnitTesting; using NUnit.Framework; using TUGraz.VectoCommon.Utils; @@ -54,9 +55,9 @@ namespace TUGraz.VectoCore.Tests.Integration.DriverStrategy var cycle = new[] { // <s>,<v>,<grad>,<stop> - string.Format(" 0, {0}, {2}, 0", v1, v2, slope), - string.Format("1000, {1}, {2}, 0", v1, v2, slope), - string.Format("1100, {1}, 0, 0", v1, v2, slope) + string.Format(CultureInfo.InvariantCulture, " 0, {0}, {2}, 0", v1, v2, slope), + string.Format(CultureInfo.InvariantCulture, "1000, {1}, {2}, 0", v1, v2, slope), + string.Format(CultureInfo.InvariantCulture, "1100, {1}, 0, 0", v1, v2, slope) }; System.IO.Directory.CreateDirectory(string.Format(@"Coast_{0}_{1}", v1, v2, slope)); var slopePrefix = "";