Math.Round Method (Double)
Rounds a double-precision floating-point value to the nearest integral value.
public static double Round( double a )
Parameters
a
Type: System.Double
A double-precision floating-point number to be rounded.
Return Value
Type: System.Double
The integer nearest a. If the fractional component of a is halfway between two integers, one of which is even and the other odd, then the even number is returned. Note that this method returns a Double instead of an integral type.