Visual Basic for Applications Reference

Visual Studio 6.0

Round Function

See Also    Example    Specifics


Returns a number rounded to a specified number of decimal places.


Round(expression [,numdecimalplaces])

The Round function syntax has these parts:

Part Description
expression Required. Numeric expression being rounded.
numdecimalplaces Optional. Number indicating how many places to the right of the decimal are included in the rounding. If omitted, integers are returned by the Round function.