Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Decimal.Round Method

 

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

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticRound(Decimal)

Rounds a decimal value to the nearest integer.

System_CAPS_pubmethodSystem_CAPS_staticRound(Decimal, Int32)

Rounds a Decimal value to a specified number of decimal places.

System_CAPS_pubmethodSystem_CAPS_staticRound(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.

System_CAPS_pubmethodSystem_CAPS_staticRound(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.

Return to top
Show:
© 2016 Microsoft