Round
Last updated
Last updated
The Round Node takes a numerical value and rounds it with a chosen precision.
The following table shows a few examples:
|
|
|
5.45 | 1 | 5.5 |
5.44 | 1 | 5.4 |
12.11232 | 3 | 12.112 |
12.11232 | 2 | 12.11 |
12.11232 | 1 | 12.1 |
12.11232 | 0 | 12 |
Scope: Project, Scene, Function, Prefab.
Attribute | Type | Description |
---|---|---|
| Int | Indicates the maximum number of decimal places that the |
Input | Type | Description |
---|---|---|
Pulse Input (►) | Pulse | A standard Input Pulse, to trigger the execution of the Node. |
| Float | The value to be rounded. |
Output | Type | Description |
---|---|---|
Pulse Output (►) | Pulse | A standard Output Pulse, to move onto the next Node along the Logic Branch, once this Node has finished its execution. |
| Float | The rounded value. |
Rounding on Wikipedia.