Hexadecimal String to Number

Converts the characters 0 through 9, A through F, and a through f in a string to a hexadecimal integer.

1378

Inputs/Outputs

datatype_icon

string

The string that you want to convert.

This input can also be any data type that contains only strings, such as an array or cluster of strings.
datatype_icon

offset

The number of characters into the input string at which this node begins its operation.

The offset of the first character in the input string is 0. If offset is beyond the end of the input string, this node returns an empty string.

Note A character refers to a code point, a numeric unit between 0 and 10FFFF16, defined by the Unicode standard for encoding. For more information about code points, research Unicode.

Default value: 0

datatype_icon

default

A numeric value whose representation determines the representation of number.

Default value: 32-bit unsigned integer

datatype_icon

offset past number

The index in string of the first character following the number.

If string is an array of strings, offset past number reflects the offset within the last string.

Note A character refers to a code point, a numeric unit between 0 and 10FFFF16, defined by the Unicode standard for encoding. For more information about code points, research Unicode.
datatype_icon

number

The result of converting string into a number.

The structure of number matches the structure of string. For example, if string is an array of strings, number is an array of numbers.

If the input string represents a number outside the range of the representation of number, number is set to the maximum value for that representation.

Examples

The following table shows how the values of string, offset, and default affect offset past number and number.
stringoffsetdefaultoffset past number numberComments
f3g002243g is not a valid hex character, so conversion stops there.
–300000Negative numbers are not permitted for hex.