Hexadecimal String To Number

Interprets the characters 0 through 9, A through F, and a through f in string starting at offset as a hex integer and returns it in number. The connector pane displays the default data types for this polymorphic function.

string can be a string, a cluster of strings, an array of strings, or an array of clusters of strings. If the data type of string is a number, the function interprets it as ASCII codes for characters.
offset is the starting position and must be numeric. The offset of the first character in the string is 0. If unwired or if less than 0, the default is 0.
default is any object of numeric representation and specifies the numeric representation for number. The default is a 32-bit signed integer value of 0.
offset past number is the index in string of the first character following the number. offset past number reflects the value from the last string if you input an array of strings.
number can be a number, a cluster, an array of numbers, or an array of clusters depending on the structure of string and offset. If the input string represents a number outside the range of the representation of number, number is set to the maximum value for that data type. The following table shows how the values of string, offset, and default affect number.

stringoffsetdefaultoffset past numbernumberComments
f3g002243g is not a valid hex character, so conversion stops there.
–300000Negative numbers are not permitted for hex.