This documentation is archived and is not being maintained.

# Math.Round Method

**Visual Studio 2008**

Rounds a value to the nearest integer or specified number of decimal places.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Name | Description | |
---|---|---|

Round(Decimal) | Rounds a decimal value to the nearest integral value. | |

Round(Double) | Rounds a double-precision floating-point value to the nearest integral value. | |

Round(Decimal, Int32) | Rounds a decimal value to a specified number of fractional digits. | |

Round(Decimal, MidpointRounding) | Rounds a decimal value to the nearest integer. A parameter specifies how to round the value if it is midway between two other numbers. | |

Round(Double, Int32) | Rounds a double-precision floating-point value to a specified number of fractional digits. | |

Round(Double, MidpointRounding) | Rounds a double-precision floating-point value to the nearest integer. A parameter specifies how to round the value if it is midway between two other numbers. | |

Round(Decimal, Int32, MidpointRounding) | Rounds a decimal value to a specified number of fractional digits. A parameter specifies how to round the value if it is midway between two other numbers. | |

Round(Double, Int32, MidpointRounding) | Rounds a double-precision floating-point value to the specified number of fractional digits. A parameter specifies how to round the value if it is midway between two other numbers. |

Show: