May 13, 2021 VBScript
When using VBScript, if you need to round numbers, use the Round function!
The Round function rounds numbers.
parameter | describe |
---|---|
expression | Required.Need to be rounded in numerical expression. |
numdecimalplaces | Optional.Specifies how many people on the right side of the decimal point are rounded.The default is 0. |
The above example output results:
How to round a number to keep 2 digits:
The above example output results: