/
hexToNumber

hexToNumber

Function: hexToNumber()

Converts a hexadecimal string into its corresponding number

Syntax

hexToNumber(value)

ArgumentTypeDescription
valueStringThe value to be converted. If the hexadecimal string isn’t valid, or the string is zero-length, or null, it returns zero

Examples

hexToNumber(in.value)

Returns the number 18 where the attribute in.value contains a string "12".
Returns the number 0 where the attribute in.value contains a string "five"

See Also

Related content

hexToNumber
hexToNumber
More like this
hexToNumber
hexToNumber
More like this
toHex
toHex
More like this
toHex
More like this
toHex
toHex
More like this
toHex
toHex
More like this