The documentation for "Set an Integer Value" notes
If you have a value in text or in a token, you can attempt to convert the value to an integer by selecting, 'Convert Text/Token' and type the text and/or tokens into the box provided.
If the value cannot be converted, the variable value will be, 'Not Set'.
(bold emphasis mine)However, if the "Convert Text/Token" field is used, a value smaller or larger than the maximum for an Int32(less than -2147483648 or more than 2147483647) will be converted to the minimum or maximum value, respectively(E.G. -2147483649 is converted to -2147483648).
On the other hand, if the value is set too low or high by a math function it will instead result in the variable getting set to "Not Set"(which is not mentioned in the documentation relating to math, only to tokens, neither are the minimum and maximum values, which are only listed for small integer).
E.G.
Set integer [t] value to -2147483648
Set integer [t] to [t] plus -1
Write [Blue] '{INT:t}' to log
Will write "Not Set" to the log.
Small Integer will wrap around instead, both when converting or using math.
E.G.
Set small int (condition) [t] value to the converted value of -32769
Write [Blue] '{SMALL:t}' to log
Set small int (condition) [t] value as incremented by 1
Write [Blue] '{SMALL:t}' to log
Writes "32767"(wraparound from negative to positive) and "-32768"(wraparound from positive to negative) to the log.
None of these conditions provide feedback to the user; I feel this would be useful for diagnostics.
Lastly, decimal will not convert invalid values, writing "Decimal token could not be converted : " to the log, and math will result in "Not Set" when overflowing.
The "A value" field for decimal is inconsistent with the other two numeric values, as instead of limiting the value to minimum if too small, or maximum if too large, it always retains the previously entered value for that action.
E.G. if the previous value was "1337", and "-79228162514264337593543950336" is entered, clicking "OK" will result in the value remaining "1337".
As an aside, I believe
(see, 'Set a Small Integer Variable' command action above)
is intended to refer to the "Set a Small Integer (Condition) Value" section, as there is no "Set a Small Integer Variable" section.
Also, while the documentation for "Set a Small Integer (Condition) Value" notes
The value can be no more than 32,767 and no less than -32,767.
the minimum value for an Int16 is actually -32768.
The "A value" numericupdown for this action correctly limits it to -32768.