Export (0) Print
Expand All

Decimal.Round Method

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member Round(Decimal) Rounds a decimal value to the nearest integer.
Public method Static member Round(Decimal, Int32) Rounds a Decimal value to a specified number of decimal places.
Public method Static member 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.
Public method Static member Round(Decimal, Int32, MidpointRounding) Rounds a decimal value to a specified precision. A parameter specifies how to round the value if it is midway between two other numbers.
Top
Show:
© 2014 Microsoft