def dp2hx(number, lenout=_default_len_out):
    """
    Convert a double precision number to an equivalent character
    string using base 16 "scientific notation."

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

    :param number: D.p. number to be converted.
    :type number: float
    :param lenout: Available space for output string.
    :type lenout: int
    :return: Equivalent character string, left justified.
    :rtype: str
    """
    number = ctypes.c_double(number)
    lenout = ctypes.c_int(lenout)
    string = stypes.stringToCharP(lenout)
    length = ctypes.c_int()
    libspice.dp2hx_c(number, lenout, string, ctypes.byref(length))
    return stypes.toPythonString(string)
Convert a double precision number to an equivalent character
    string using base 16 "scientific notation."

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

    :param number: D.p. number to be converted.
    :type number: float
    :param lenout: Available space for output string.
    :type lenout: int
    :return: Equivalent character string, left justified.
    :rtype: str