System.Math.Math.Round C# (CSharp) Метод

Round() публичный статический Метод

public static Round ( double value, int digits ) : double
value double
digits int
Результат double
		public static double Round (double value, int digits)
		{
			if (digits < 0 || digits > 15)
				throw new ArgumentOutOfRangeException (Locale.GetText ("Value is too small or too big."));

			return Round2(value, digits, false);
		}

Same methods

Math.Math::Round ( decimal d ) : decimal
Math.Math::Round ( decimal d, MidpointRounding mode ) : decimal
Math.Math::Round ( decimal d, int decimals ) : decimal
Math.Math::Round ( decimal d, int decimals, MidpointRounding mode ) : decimal
Math.Math::Round ( double a ) : double
Math.Math::Round ( double value, MidpointRounding mode ) : double
Math.Math::Round ( double value, int digits, MidpointRounding mode ) : double