Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbNumberToMoney

Convert a CTNUMBER value to CTMONEY.

Declaration

CTDBRET ctdbNumberToMoney(pCTNUMBER pNumber, pCTMONEY pMoney)

Description

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

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

Returns

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

The possible error associated with ctdbNumberToMoney() is:

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

See also

ctdbMoneyToNumber(), ctdbNumberToCurrency()

TOCIndex