Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbFloatToNumber

Convert a float to a CTNUMBER value.

Declaration

CTDBRET ctdbFloatToNumber(CTFLOAT value, pCTNUMBER pNumber)

Description

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

  • value [in] the float value.
  • pNumber [out] pointer to CTNUMBER.

Returns

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

The possible error associated with ctdbFloatToNumber() is:

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

See also

ctdbNumberToFloat()

TOCIndex