Loading TOC...

xdmp:hex-to-integer

xdmp:hex-to-integer(
   $hex as xs:string
) as xs:integer

Summary

Parses a hexadecimal string, returning an integer.

Parameters
$hex The hexadecimal string.

Example

xdmp:hex-to-integer("1234567890abcdef")
=> 1311768467294899695

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.
  • Will this overflow or wrap? Is the return type an integer, long or even longer (128bit) ;)