Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Round Method
Collapse the table of content
Expand the table of content

Decimal.Round Method

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

Name Description
Decimal.Round (Decimal) Rounds a decimal value to the nearest integer.
Decimal.Round (Decimal, Int32) Rounds a Decimal value to a specified number of decimal places.

Supported by the .NET Compact Framework.

Decimal.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.
Decimal.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.

Community Additions

ADD
Show:
© 2015 Microsoft