Returns a number rounded to a specified number of decimal places.
- Required. Numeric expression being rounded.
- 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.
The following example uses the Round function to round a number to two decimal places:
Dim MyVar, pi
pi = 3.14159
) ' MyVar contains 3.14.
Int, Fix Functions