Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbNumberToFloat

Convert a CTNUMBER value to a floating point value.

Declaration

CTDBRET ctdbNumberToFloat(pCTNUMBER pNumber, pCTFLOAT pValue)

Description

ctdbNumberToFloat() converts a CTNUMBER value to a floating point value. Use ctdbFloatToNumber() to convert from float to CTNUMBER.

  • pNumber [in] pointer to CTNUMBER.
  • pValue [out] pointer to floating point value.

Returns

ctdbNumberToFloat() returns CTDBRET_OK on success, or FairCom DB API error on failure.

The possible error associated with ctdbNumberToFloat() is:

  • CTDBRET_NULARG (4007): Null argument not valid in pValue

See also

ctdbFloatToNumber()

TOCIndex