Round
This node rounds a number to the nearest integer.
The Round node applies standard mathematical rounding to convert decimals to whole numbers.
The Round node takes a numeric input and returns the nearest integer using standard rounding rules (0.5 and above rounds up, below 0.5 rounds down).
| Data | Description |
|---|
| Value | The number to round (default: 0) |
Actions
| Signal | Description |
|---|
| Do | Triggers the rounding calculation |
Outputs
| Data | Description |
|---|
| Rounded Value | The input value rounded to the nearest integer |
| Signal | Description |
|---|
| Done | Triggered when the calculation is complete |
Usage
Example Use Cases
- Display Values: Round numbers for user-friendly display
- Financial Rounding: Round currency to nearest cent
- Game Mechanics: Convert calculated values to whole numbers
- Data Processing: Clean up floating-point calculation results
Examples
| Input | Output |
|---|
| 4.2 | 4 |
| 4.5 | 5 |
| 4.8 | 5 |
| -2.3 | -2 |
| -2.7 | -3 |