Complete VBScript Reference
The Round function rounds a number.
| Parameter | Description |
|---|---|
| expression | Required. The numeric expression to be rounded |
| numdecimalplaces | Optional. Specifies how many places to the right of the decimal are included in the rounding. Default is 0 |
The output of the code above will be:
How to round a number, keeping 2 decimals:
The output of the code above will be:
Complete VBScript Reference
Your message has been sent to W3Schools.