Int node
Use the Int node to access preset integer variables and common methods for whole numbers.
Read time 1 minuteLast updated 17 hours ago
The Int node provides a group of integer-related values and methods. It contains variables with preset values that you can use to set or compare values, or perform arithmetic operations. An integer is a whole number that can be positive, negative, or zero, for example, -3, 0, or 42.
Variables
Expand the Int node to view available variables you can use with the node:Variable | Type | Description |
|---|---|---|
| MinValue | | The smallest possible integer value, which is −2,147,483,648. Use to initialize variables to the lowest possible value or for comparisons. |
| MaxValue | | The largest possible integer value, which is 2,147,483,647. Use to initialize variables to the highest possible value or for comparisons. |
Methods
Expand the Int node to view available methods you can use with the node:Method | Return type | Description |
|---|---|---|
| Parse | | Converts a string representation of a number to its integer equivalent. Use to convert user number input or data from text sources into an integer value. If the string has non-numeric characters, an exception is thrown. |
| Try Parse | | Tries to convert a string representation of a number to its integer equivalent and returns a Boolean that indicates whether the conversion was successful. Use to safely handle user input or data from text sources with no risk of exceptions from invalid formats. |