ctdbNumberToCurrency
Convert a CTNUMBER value to a currency value.
Declaration
CTDBRET ctdbNumberToCurrency(pCTNUMBER pNumber, pCTCURRENCY pValue)
Description
ctdbNumberToCurrency() converts a CTNUMBER value to a CTCURRENCY value. Use ctdbCurrencyToNumber() to convert from a CTCURRENCY to CTNUMBER. Use ctdbNumberToMoney() to convert CTNUMBER to a CTMONEY.
Returns
ctdbNumberToCurrency() returns CTDBRET_OK on success, or c-treeDB API error on failure.
The possible error associated with ctdbNumberToCurrency() is:
See also
ctdbCurrencyToNumber(), ctdbNumberToLong(), ctdbNumberToMoney()