This topic has not yet been rated - Rate this topic

# Math.Round Method

February 14, 2014

Rounds a value to the nearest integer or specified number of decimal places.

NameDescription
Round(Decimal) Rounds a decimal value to the nearest integral value.
Round(Double) Rounds a double-precision floating-point value to the nearest integral value.
Round(Decimal, Int32) Rounds a decimal value to a specified number of fractional digits.
Round(Decimal, MidpointRounding) Rounds a decimal value to the nearest integer. A parameter specifies how to round the value if it is midway between two other numbers.
Round(Double, Int32) Rounds a double-precision floating-point value to a specified number of fractional digits.
Round(Double, MidpointRounding) Rounds a double-precision floating-point value to the nearest integer. A parameter specifies how to round the value if it is midway between two other numbers.
Round(Decimal, Int32, MidpointRounding) Rounds a decimal value to a specified number of fractional digits. A parameter specifies how to round the value if it is midway between two other numbers.
Round(Double, Int32, MidpointRounding) Rounds a double-precision floating-point value to the specified number of fractional digits. A parameter specifies how to round the value if it is midway between two other numbers.
Top

#### Reference

(1500 characters remaining)