« Close

Datasheets and User Guides

App Notes

Software & Driver


2.11 - StringToDoubleAddress()

Some special-channels of the config IOType pass IP address (and others) in a double. This function is used to convert a string in normal decimal-dot or hex-dot notation into a double.


LJ_ERROR _stdcall StringToDoubleAddress (  const char *pString,
                                           double *pNumber,
                                           long HexDot)

Parameter Description:
Returns: LabJack errorcodes or 0 for no error.

  • pString – A pointer to the string representation.
  • HexDot – If not equal to zero, the passed string should be in hex-dot notation rather than decimal-dot.


  • pNumber – A pointer to the double precision representation.