Rounds a decimal value to the nearest integral value.
Namespace:
SystemAssembly:
mscorlib (in mscorlib.dll)
Public Shared Function Round (
d As Decimal
) As Decimal
Return Value
Type:
System.DecimalThe integer nearest parameter d. If the fractional component of d is halfway between two integers, one of which is even and the other odd, the even number is returned. Note that this method returns a Decimal instead of an integral type.
Note

For examples and comprehensive usage information about this and other overloads of the Round method, see the Round reference page.

Universal Windows Platform
Available since 4.5
.NET FrameworkAvailable since 1.1
Portable Class LibrarySupported in:
portable .NET platformsSilverlightAvailable since 2.0
Windows Phone SilverlightAvailable since 7.0
Windows PhoneAvailable since 8.1
Return to top