.NET Framework Class Library
Decimal..::.Round Method

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

Overload List

  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
See Also

Reference

Tags :


Page view tracker