Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbMoneyToNumber

Convert a CTMONEY value to a CTNUMBER.

Declaration

CTDBRET ctdbMoneyToNumber(CTMONEY money, pCTNUMBER pNumber)

Description

ctdbMoneyToNumber() converts a CTMONEY value to a CTNUMBER. Use ctdbNumberToMoney() to convert from a CTNUMBER to CTMONEY.

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

Returns

ctdbMoneyToNumber() returns CTDBRET_OK on success, or c-treeDB API error on failure.

The possible error associated with ctdbMoneyToLong() is:

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

See also

ctdbNumberToMoney()

TOCIndex