Number To Hexadecimal String

Converts number to a string of hexadecimal digits at least width characters wide, or wider if necessary. The digits A–F always appear in upper case in the output string. If number is floating point, it will be truncated to a long integer before conversion. The connector pane displays the default data types for this polymorphic function.

number can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
width must be numeric. If unwired, the function uses exactly as many digits as are needed to represent the number, with no extra padding.
hex integer string is the resulting hexadecimal string. The following table shows how the values of number and width affect hex integer string.

numberwidthhex integer stringComments
340003If width is larger than needed, zeros are added on the left.
42302A
–4.23FFFFFFFC–4.2 is rounded up to –4 in 32-bit integer format. Width is too small to represent the hex version of a negative number, so the field width is extended.