<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.hexToInteger.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.hexToInteger</api:function-name><api:suggest>xdmp.hextointeger</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>hextointeger</api:suggest><api:function-link mode="xquery" fullname="xdmp:hex-to-integer">/apidoc/8.0/xdmp:hex-to-integer.xml</api:function-link><api:function mode="javascript" name="hexToInteger" type="builtin" lib="xdmp" category="Extension" subcategory="Extension" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.hexToInteger"><api:summary>
  Parses a hexadecimal string, returning an integer.
</api:summary><api:params><api:param name="hex" type="xs:string"><api:param-description>
    The hexadecimal string.
  </api:param-description><api:param-name>hex</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>Number</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.hexToInteger("1234567890abcdef");
=&gt; 1311768467294899695
</pre></api:example></api:function></api:function-page>