Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Data/GeneralGrassCoverErosionOutwardsInput.cs =================================================================== diff -u -r04cf5f873b69cb330aeda88b622e286b2aefa852 -r401ea38da560543cd91415c326b9463976b2e80a --- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Data/GeneralGrassCoverErosionOutwardsInput.cs (.../GeneralGrassCoverErosionOutwardsInput.cs) (revision 04cf5f873b69cb330aeda88b622e286b2aefa852) +++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Data/GeneralGrassCoverErosionOutwardsInput.cs (.../GeneralGrassCoverErosionOutwardsInput.cs) (revision 401ea38da560543cd91415c326b9463976b2e80a) @@ -31,15 +31,15 @@ /// public class GeneralGrassCoverErosionOutwardsInput { - private static readonly Range validityRangeN = new Range(1, 20); - private int n; + private static readonly Range validityRangeN = new Range(1, 20); + private RoundedDouble n; /// /// Initializes a new instance of the class. /// public GeneralGrassCoverErosionOutwardsInput() { - n = 2; + n = new RoundedDouble(2, 2.0); GeneralWaveConditionsInput = new GeneralWaveConditionsInput(1.0, 0.67, 0.0); } @@ -55,7 +55,7 @@ /// /// Thrown when the is not in /// the interval [1, 20]. - public int N + public RoundedDouble N { get { @@ -68,7 +68,8 @@ throw new ArgumentOutOfRangeException(nameof(value), string.Format(Resources.N_Value_should_be_in_Range_0_, validityRangeN)); } - n = value; + + n = value.ToPrecision(n.NumberOfDecimalPlaces); } }