Index: Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingInput.cs =================================================================== diff -u -ra5b051a25a6bb059d5928e29a8d741a8ec31fcd5 -raf38c7a9724254095e2e3a631dd7e974465a1fb9 --- Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingInput.cs (.../PipingInput.cs) (revision a5b051a25a6bb059d5928e29a8d741a8ec31fcd5) +++ Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingInput.cs (.../PipingInput.cs) (revision af38c7a9724254095e2e3a631dd7e974465a1fb9) @@ -38,9 +38,9 @@ { private const double seepageLengthStandardDeviationFraction = 0.1; private readonly GeneralPipingInput generalInputParameters; - private readonly RoundedDouble assessmentLevel; - private readonly RoundedDouble exitPointL; - private readonly RoundedDouble entryPointL; + private RoundedDouble assessmentLevel; + private RoundedDouble exitPointL; + private RoundedDouble entryPointL; /// /// Initializes a new instance of the class. @@ -99,7 +99,7 @@ } set { - assessmentLevel.Value = value; + assessmentLevel = value.ToPrecision(assessmentLevel.NumberOfDecimalPlaces); } } @@ -122,7 +122,7 @@ { throw new ArgumentOutOfRangeException("value", Resources.PipingInput_EntryPointL_Value_must_be_greater_than_or_equal_to_zero); } - entryPointL.Value = value; + entryPointL = value.ToPrecision(entryPointL.NumberOfDecimalPlaces); UpdateSeepageLength(); } } @@ -146,7 +146,7 @@ { throw new ArgumentOutOfRangeException("value", Resources.PipingInput_ExitPointL_Value_must_be_greater_than_zero); } - exitPointL.Value = value; + exitPointL = value.ToPrecision(exitPointL.NumberOfDecimalPlaces); UpdateSeepageLength(); } }