Round

The Round function rounds a number.

Syntax :

Round(expression[,numdecimalplaces])
Parameters 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.

Examples :

Example 1

dRound = (Round(22.13278) & "<br />")
dRound = (Round(22.75122))
DEBUG(dRound)

Result :

dRound
= 22
= 23

Example 2

dRound = (Round(27.13278,2))
DEBUG(dRound)

Result :

dRound
= 27.13