Click or drag to resize
MathRound Method (Double)
Rounds a double-precision floating-point value to the nearest integral value.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static double Round(
	double a
)

Parameters

a
Type: SystemDouble
A double-precision floating-point number to be rounded.

Return Value

Type: 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.
See Also