xdmp.integerToHex( val as Number ) as String
Returns a hexadecimal representation of an integer.
xdmp.integerToHex(1234567890); => "499602d2"