Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
System Namespace
Decimal Structure
Decimal Methods
Round Method
Collapse All/Expand All Collapse All
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
Decimal..::.Round Method

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

  NameDescription
Public methodStatic memberRound(Decimal)Rounds a decimal value to the nearest integer.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkRound(Decimal, Int32)Rounds a Decimal value to a specified number of decimal places.
Public methodStatic memberRound(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 methodStatic memberRound(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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker