Index: Riskeer/Integration/src/Riskeer.Integration.IO/Exporters/HydraulicBoundaryLocationCalculationsForTargetProbabilitiesExporter.cs =================================================================== diff -u -ra5f4b564140f1004712d27c36887835cc75de4dc -r3178fe8b6ae605b67d9b4dec9d73e36b8aa8c4d5 --- Riskeer/Integration/src/Riskeer.Integration.IO/Exporters/HydraulicBoundaryLocationCalculationsForTargetProbabilitiesExporter.cs (.../HydraulicBoundaryLocationCalculationsForTargetProbabilitiesExporter.cs) (revision a5f4b564140f1004712d27c36887835cc75de4dc) +++ Riskeer/Integration/src/Riskeer.Integration.IO/Exporters/HydraulicBoundaryLocationCalculationsForTargetProbabilitiesExporter.cs (.../HydraulicBoundaryLocationCalculationsForTargetProbabilitiesExporter.cs) (revision 3178fe8b6ae605b67d9b4dec9d73e36b8aa8c4d5) @@ -21,12 +21,12 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.IO; using System.Linq; using Core.Common.Base.IO; using Core.Common.Util; using Riskeer.Common.Data.Hydraulics; +using Riskeer.Common.Forms.Helpers; namespace Riskeer.Integration.IO.Exporters { @@ -82,10 +82,8 @@ string exportType = calculationsType == HydraulicBoundaryLocationCalculationsType.WaterLevel ? "Waterstanden" : "Golfhoogten"; - - double returnPeriod = 1.0 / calculationsForTargetProbability.TargetProbability; - - var fileName = $"{exportType}_{returnPeriod.ToString(CultureInfo.InvariantCulture)}"; + + var fileName = $"{exportType}_{ReturnPeriodFormattingHelper.FormatFromProbability(calculationsForTargetProbability.TargetProbability)}"; string filePath = Path.Combine(folderPath, $"{fileName}.shp"); var exporter = new HydraulicBoundaryLocationCalculationsExporter( Index: Riskeer/Integration/test/Riskeer.Integration.IO.Test/Exporters/HydraulicBoundaryLocationCalculationsForTargetProbabilitiesExporterTest.cs =================================================================== diff -u -ra5f4b564140f1004712d27c36887835cc75de4dc -r3178fe8b6ae605b67d9b4dec9d73e36b8aa8c4d5 --- Riskeer/Integration/test/Riskeer.Integration.IO.Test/Exporters/HydraulicBoundaryLocationCalculationsForTargetProbabilitiesExporterTest.cs (.../HydraulicBoundaryLocationCalculationsForTargetProbabilitiesExporterTest.cs) (revision a5f4b564140f1004712d27c36887835cc75de4dc) +++ Riskeer/Integration/test/Riskeer.Integration.IO.Test/Exporters/HydraulicBoundaryLocationCalculationsForTargetProbabilitiesExporterTest.cs (.../HydraulicBoundaryLocationCalculationsForTargetProbabilitiesExporterTest.cs) (revision 3178fe8b6ae605b67d9b4dec9d73e36b8aa8c4d5) @@ -20,14 +20,14 @@ // All rights reserved. using System; -using System.Globalization; using System.IO; using System.Linq; using System.Security.AccessControl; using Core.Common.Base.IO; using Core.Common.TestUtil; using NUnit.Framework; using Riskeer.Common.Data.Hydraulics; +using Riskeer.Common.Forms.Helpers; using Riskeer.Integration.IO.Exporters; namespace Riskeer.Integration.IO.Test.Exporters @@ -157,7 +157,7 @@ private static string GetReturnPeriodText(double targetProbability) { - return (1.0 / targetProbability).ToString(CultureInfo.InvariantCulture); + return ReturnPeriodFormattingHelper.FormatFromProbability(targetProbability); } } } \ No newline at end of file