@spiceErrorCheck<EOL>def hx2dp(string):
string = stypes.stringToCharP(string)<EOL>lenout = ctypes.c_int(<NUM_LIT>)<EOL>errmsg = stypes.stringToCharP(lenout)<EOL>number = ctypes.c_double()<EOL>error = ctypes.c_int()<EOL>libspice.hx2dp_c(string, lenout, ctypes.byref(number), ctypes.byref(error),<EOL>errmsg)<EOL>if not error.value:<EOL><INDENT>return number.value<EOL><DEDENT>else:<EOL><INDENT>return stypes.toPythonString(errmsg)<EOL><DEDENT>
Convert a string representing a double precision number in a
base 16 scientific notation into its equivalent double
precision number.

http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/hx2dp_c.html

:param string: Hex form string to convert to double precision.
:type string: str
:return: Double precision value to be returned, Or Error Message.
:rtype: float or str