MathRound Method (Double) |
Rounds a double-precision floating-point value to the nearest integral value.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static double Round(
double a
)
Parameters
- a
- Type: SystemDouble
A double-precision floating-point number to be rounded.
Return Value
Type:
DoubleThe 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