From http://www.w3schools.com (Copyright Refsnes Data)
Complete VBScript Reference
The Round function rounds a number.
| Round(expression[,numdecimalplaces]) |
| 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 |
|
Dim x x=24.13278 document.write(Round(x)) Output: 24 |
|
Dim x x=24.13278 document.write(Round(x,2)) Output: 24.13 |
Complete VBScript Reference
From http://www.w3schools.com (Copyright Refsnes Data)