The numSignificantDigits is a log10 number,
i.e. it can be used to remove insignificant digits only for
small numbers, i.e.
.
Round(19, System.Math.Log10(20) = 19 - no rounding
Round(20, System.Math.Log10(20) = 20 - on the boundary of rounding
Round(21, System.Math.Log10(20) = 20 - rounding
Round(31, System.Math.Log10(20) = 30 - rounding
public static int Round(
int value,
double numSignificantDigits
)[Missing <param name="value"/> documentation for "M:DHI.Mike1D.Generic.MathUtil.Round(System.Int32,System.Double)"]
[Missing <param name="numSignificantDigits"/> documentation for "M:DHI.Mike1D.Generic.MathUtil.Round(System.Int32,System.Double)"]
[Missing <returns> documentation for "M:DHI.Mike1D.Generic.MathUtil.Round(System.Int32,System.Double)"]