FUNCTION

integer.parseHex

purestatic function parseHex(value: text): integer

Deprecated (for removal): Use 'from_hex' instead

Parse an unsigned hexadecimal text representation of an integer.

Base prefixes are not supported, so one must write e.g. integer.from_hex('CAFE') rather than integer.from_hex('0xCAFE').

Case is ignored, i.e. integer.from_hex('CAFE') and integer.from_hex('cafe') are equivalent.

Parameters

  • value — the hexadecimal text to be parsed

Throws

  • exception — if the text representation is ill-formed

Since

0.9.0

Alias of integer.from_hex

© 2026 Chromia