Truncate to integer
DataTarget independent
conversion.truncate-to-integerDrops the fractional part and checks the safe integer range; -1.9 becomes -1.
Example use
Discard the fractional part of -1.9 to get integer -1.
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:c100fc4d0f2675fe11173f1781ce426243053f8e54ff498170f469ffd559046c