Product Documentation

c-treeDB API 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 c-treeDB API error on failure.

The possible error associated with ctdbNumberToFloat() is:

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

See also

ctdbFloatToNumber()

TOCIndex