ROUND rounds the value of a specified variable or expression to the Decimal Places specified.
SYNTAX:
ROUND(Cx or Exp, DecimalPlaces)
where :
Cx is a conditional variable x
Exp is a Expression
Decimal Places specifies the number of places after the decimal to round the number
NOTES:
This function rounds digits 1, 2, 3, and 4 down and 5, 6, 7, 8, and 9 up. See also SROUND for scientific rounding and SDIGITS significant digits rounding. See Normal vs Scientific Rounding.
EXAMPLES:
Example 1:
V131 = ROUND(C70, 0)
Variable 131 will contain the data in variable 70 rounded to the nearest integer:
Example 2:
V131 = ROUND(C70, 2)
Variable 131 will contain the data in variable 70 rounded to 2 decimal places: