Easy Tutorial
❮ Func Replace Vb Func Date ❯

VBScript Round Function



The Round function rounds a number.

Syntax

Parameter Description
expression Required. The numeric expression to be rounded.
numdecimalplaces Optional. Specifies the number of digits to the right of the decimal point to round to. The default is 0.

Example

Example 1

Output of the above example:

Example 2

How to round a number to 2 decimal places:

Output of the above example:


❮ Func Replace Vb Func Date ❯