Math::Round Method (Double)
Rounds a double-precision floating-point value to the nearest integral value.
Assembly: mscorlib (in mscorlib.dll)
A double-precision floating-point number to be rounded.
Notes to Callers:
Because of the loss of precision that can result from representing decimal values as floating-point numbers or performing arithmetic operations on floating-point values, in some cases themethod may not appear to round midpoint values to the nearest even integer. In the following example, because the floating-point value .1 has no finite binary representation, the first call to the method with a value of 11.5 returns 11 instead of 12.
Available since 8
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1