# Round - function of language VBScript

###### Description:
Returns a number rounded to a specified number of decimal places.

For the purposes of PROMOTIC system, it is more usefull to use the method: Pm.Round.

###### Syntax:
Round(expression As Double, [numdecimalplaces As Integer]) As Double
###### Calling:
`n = Round(expression[, numdecimalplaces])`
###### Parameters:
expression (Double) Numeric expression being rounded [optional] (Integer) Number indicating how many places to the right of the decimal are included in the rounding. If omitted, integers are returned.
###### Note:
Be careful on rounding the number 5. The function doesn't round this number always up but on the statistical basis. This means that after rounding many numbers, we would get the most accurate result. The function solves this problem so that odd numbers (e.g. 1.15) are rounded up (to 1.2), while even numbers (e.g. 1.25) are rounded down (to 1.2).
###### Example:
`Dim nVar, pi`
`pi = 3.14159`
`nVar = Round(pi, 2) 'nVar contains 3.14`

- Abs
- And
- Asc
- Atn
- Cos
- Day
- Dim
- Eqv
- Exp
- Fix
- Hex
- Chr
- If
- Imp
- Int
- Is
- Len
- Log
- Mid
- Mod
- Not
- Now
- Oct
- Or
- Rem
- RGB
- Rnd
- Round

- Set
- Sgn
- Sin
- Sqr
- Tan
- Xor