System.Math.Round Method

Rounds a double-precision floating-point value to a specified number of fractional digits. A parameter specifies how to round the value if it is midway between two numbers.

The number nearest to

valuethat has a number of fractional digits equal todigits. Ifvaluehas fewer fractional digits thandigits,valueis returned unchanged.

For examples and comprehensive usage information about this and other overloads of the Round method, see the erload:System.Math.Round reference page.