|
VBScript Round Function
Complete VBScript Reference
The Round function rounds a number.
Syntax
|
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 |
Example 1
dim x
x=24.13278
document.write(Round(x))
Output:
24
|
Example 2
dim x
x=24.13278
document.write(Round(x,2))
Output:
24.13
|
Complete VBScript Reference
729,913 sites built with Wix. Make your own
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|