Round to integer
DataTarget independent
conversion.round-to-integerRounds to the nearest integer, ties away from zero, and checks the safe range.
Example use
Convert 2.6 to the nearest integer, 3, for an integer input.
Node preview
Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.
Loading node preview…
Data inputs 1
- Value
valueNumber The value operated on; supply structured data of the type shown and see the node description for its role.
Default availableDefault:0
Data outputs 1
- Result
resultInteger The result of this data operation, with its type determined by the matching inputs.
- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042
Version and node identity
Version 1.0.0
sha256:dc3e952e790ec4357504561ffbbf67cc089e0c6e97064b9be661943053dc42fd