Round function
Syntax
Round(dec, precision)
Description
Use the Round function to round a decimal number to a specified precision.
Parameters
| Parameter | Description |
|---|---|
|
dec |
A Number value to be rounded. |
|
precision |
A number value specifying the decimal precision to which to round dec. |
Returns
Returns a Number value equal to dec rounded up to precision decimal places.
Example
The following examples set the value of &TMP to 2.2, 9, then 24.09:
&TMP = Round(2.15,1);
&TMP = Round(8.789,0);
&TMP = Round(24.09372,2);
Related Topics