Round
The ROUND function rounds the input. One of three rounding methods can be selected: Down, Normal, or Up.
Input/Output
Number of Connections: 1
| Input | Data Type | Description |
| Input1 | Integer,Double,Decimal | A number. |
| Output | Data Type | Description |
| Output1 | Decimal | The result of rounding the input by the selected method (Down, Normal, or Up). |
Property
| Name | Property Type | Description |
| Position | int |
A positive Integer specifies the number of decimal places to be retained when rounding the number.
A negative Integer specifies the number digits to which the number is to be rounded to.
|
| Mode | choice | One of three rounding methods can be selected:
| Normal | - |
Rounds the input to the nearest Integer.
|
| Up | - |
Rounds the input up to the nearest Integer.
|
| Down | - |
Rounds the input down to the nearest Integer.
|
|
Topic
- The input is always treated as a Decimal.
Example
| Property | Output |
| Input1 | 1234.567 | Position | 0 | 1235 |
| | Mode | Normal | |
| Property | Output |
| Input1 | 5678.1234 | Position | -2 | 5600 |
| | Mode | Down | |