![]() |
The Round block rounds a decimal number to an integer value. You can round a number up, down, or to the nearest integer. You can also truncate a number to a certain number of decimal places. |

| Input | Round To Nearest | Round Up | Round Down |
|---|---|---|---|
| 1.2 | 1 | 2 | 1 |
| 1.5 | 2 | 2 | 1 |
| 1.7 | 2 | 2 | 1 |
| 2.0 | 2 | 2 | 2 |
| 2.1 | 2 | 3 | 2 |

| Input | Number of Decimals | Output |
|---|---|---|
| 1.253 | 0 | 1 |
| 1.253 | 1 | 1.2 |
| 1.253 | 2 | 1.25 |
| 1.253 | 6 | 1.253 |
| Input | Type | Notes |
|---|---|---|
| Input | Numeric | Number to round |
| Number of Decimals | Numeric | Number of decimal places to keep in Truncate mode. |