Home : ROUND
Q10888 - INFO: ROUND

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:

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 4/7/2008 1:47 PM.
Last Modified on 10/2/2020 10:24 AM.
Last Modified by Scott Dorner.
Article has been viewed 3505 times.
Rated 0 out of 10 based on 0 votes.
Print Article
Email Article