Round

This function will round specified value to specified number of decimal places.

Syntax

Round("number", "decimalDigits");

Function arguments

  • number – (Decimal) The number to be rounded.
  • decimalDigits – (Decimal) The number of decimal places to round to.

Return value

This function returns Decimal.
Returns input number rounded to specified number of decimal places

Examples

Example 1:
This will return '3.141′.

num = 3.141516
Round(num,3);

Example 2:
This will return '3.1′.

num = 3.1
Round(num,3);
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.